.qing-cof {
    max-width: 48rem;
    overflow: hidden;
    box-sizing: border-box;
}

.qing-cof__form {
    max-width: 100%;
    overflow: hidden;
}

.qing-cof__header {
    margin-bottom: 2.5rem;
}

.qing-cof__subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.qing-cof__title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.875rem;
    margin: 0;
}

@media (min-width: 1024px) {
    .qing-cof__title {
        font-size: 2.25rem;
    }
}

/* Step Title */
.qing-cof__step-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 0 1rem;
}

@media (max-width: 639px) {
    .qing-cof__step-title {
        font-size: 1.25rem;
    }

    .qing-cof__title {
        font-size: 1.5rem;
    }
}

.qing-cof__step-desc {
    font-size: 0.875rem;
    margin: 0 0 0.75rem;
}

/* Divider - solid dark line */
.qing-cof__divider {
    border-top: 1px solid;
    margin: 2rem 0 1.5rem;
}

/* Custom Radio/Checkbox */
.qing-cof__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.qing-cof__checkboxes--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
}

@media (max-width: 639px) {
    .qing-cof__checkboxes--grid {
        grid-template-columns: 1fr;
    }
}

.qing-cof__check-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.qing-cof__check-label span {
    font-size: 0.875rem;
}

.qing-cof__check-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.qing-cof__check-label input[type="checkbox"]:checked {
    box-shadow: inset 0 0 0 3px #fff;
}

/* Color Swatches */
.qing-cof__colors {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

@media (max-width: 639px) {
    .qing-cof__colors {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 380px) {
    .qing-cof__colors {
        grid-template-columns: repeat(4, 1fr);
    }
}

.qing-cof__color-swatch {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 60px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
    border: 2px solid transparent;
}

.qing-cof__color-swatch:hover {
    transform: scale(1.08);
}

.qing-cof__color-swatch.active {
    box-shadow: 0 0 0 3px rgba(25, 110, 202, 0.25);
}

.qing-cof__color-swatch.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #fff;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
}

/* Dropzone */
.qing-cof__dropzone {
    display: block;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 2px dashed;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

@media (max-width: 639px) {
    .qing-cof__dropzone {
        padding: 1.5rem 1rem;
    }
}

.qing-cof__dropzone:hover,
.qing-cof__dropzone.dragover {
    background: #faf6e8;
}

.qing-cof__dropzone-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f1d2f;
    margin: 0 0 0.5rem;
}

.qing-cof__dropzone-desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0 0 1rem;
}

.qing-cof__dropzone-btn {
    display: inline-block;
    border: 1px solid #9ca3af;
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    color: #0f1d2f;
    background: #fff;
    transition: background 0.2s;
}

.qing-cof__dropzone-btn:hover {
    background: #f9f9f9;
}

.qing-cof__file-input {
    display: none;
}

.qing-cof__file-name {
    font-size: 0.75rem;
    color: #196eca;
    margin: 0.5rem 0 0;
}

.qing-cof__upload-note {
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
    margin: 0.5rem 0 0;
}

/* Form Fields - flat grey style */
.qing-cof__textarea,
.qing-cof__input {
    border: none;
    padding: 1rem 1.25rem;
    width: 100%;
    font-size: 0.875rem;
    outline: none;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.qing-cof__textarea:focus,
.qing-cof__input:focus {
    background: #e9eaec;
}

.qing-cof__textarea::placeholder,
.qing-cof__input::placeholder {
    opacity: 1;
}

.qing-cof__textarea {
    resize: none;
}

/* Grid */
.qing-cof__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 639px) {
    .qing-cof__grid {
        grid-template-columns: 1fr;
    }
}

.qing-cof__fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Submit */
.qing-cof__submit {
    display: block;
    width: 100%;
    margin-top: 2.5rem;
    padding: 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qing-cof__submit:hover {
    opacity: 0.9;
}

.qing-cof__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Message */
.qing-cof__message {
    margin-top: 1rem;
    font-size: 0.875rem;
    text-align: center;
}

.qing-cof__message--success {
    color: #10b981;
}

.qing-cof__message--error {
    color: #ef4444;
}
