﻿/* Form Container */
.cg-form {
    margin: 2rem 0;
}

/* Card */
.cg-card {
    border-radius: 12px;
    border: none;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.cg-card-body {
    padding: 2rem;
}

/* Titles and Captions */
.cg-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cg-caption {
    font-size: 0.9rem;
    color: #202326;
    margin-bottom: 0.5rem;
}

/* Labels */
.cg-label {
    font-weight: 600;
    margin-bottom: 0.2rem;
    display: block;
}

/* Inputs and Selects */
.cg-input, .cg-select {
    font-size: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #ced4da;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .cg-input:focus, .cg-select:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 4px rgba(13, 110, 253, 0.25);
        outline: none;
    }

/* Form Group */
.cg-form-group {
    margin-top: 1.5rem;
}

/* Error Message */
.cg-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}
/* Switch Box */
.cg-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cg-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cg-switch-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
    cursor: pointer;
}

    .cg-switch-label::before {
        content: "";
        position: absolute;
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        border-radius: 50%;
        transition: 0.3s;
    }

.cg-switch-input:checked + .cg-switch-label {
    background-color: #f79131;
}

    .cg-switch-input:checked + .cg-switch-label::before {
        transform: translateX(26px);
    }

