/* ===================================================================
   Chromaglow Contact Form — Branded Styles
   Matches Chromaglow theme: purple #7c3aed, pink #ec4899, gold #f59e0b
   =================================================================== */

.cgcf-form-wrap {
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cgcf-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.cgcf-form-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
}

.cgcf-form-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* Form layout */
.cgcf-form {
    position: relative;
    display: grid;
    gap: 16px;
}

.cgcf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cgcf-full {
    grid-column: 1 / -1;
}

/* Labels */
.cgcf-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.cgcf-req {
    color: #ec4899;
}

/* Inputs */
.cgcf-field input,
.cgcf-field select,
.cgcf-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.cgcf-field input:focus,
.cgcf-field select:focus,
.cgcf-field textarea:focus {
    outline: none;
    border-color: #7c3aed;
    background: rgba(124,58,237,0.06);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.cgcf-field input::placeholder,
.cgcf-field textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.cgcf-field select option {
    background: #1a1a2e;
    color: #ffffff;
}

.cgcf-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Date input color fix */
.cgcf-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
}

/* Submit */
.cgcf-submit-row {
    text-align: center;
    margin-top: 8px;
}

.cgcf-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 48px;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
    min-width: 240px;
}

.cgcf-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124,58,237,0.4);
}

.cgcf-submit-btn:active {
    transform: translateY(0);
}

.cgcf-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner */
.cgcf-submit-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: cgcf-spin 0.6s linear infinite;
}

@keyframes cgcf-spin {
    to { transform: rotate(360deg); }
}

/* Status messages */
.cgcf-status {
    text-align: center;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    margin-top: 8px;
}

.cgcf-status.success {
    background: rgba(16,185,129,0.12);
    color: #34d399;
    border: 1px solid rgba(16,185,129,0.25);
}

.cgcf-status.error {
    background: rgba(239,68,68,0.12);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.25);
}

/* Validation */
.cgcf-field.invalid input,
.cgcf-field.invalid select,
.cgcf-field.invalid textarea {
    border-color: #ef4444;
    background: rgba(239,68,68,0.06);
}

/* Responsive */
@media (max-width: 600px) {
    .cgcf-row {
        grid-template-columns: 1fr;
    }
    .cgcf-submit-btn {
        width: 100%;
    }
}
