/* =============================================
   Kamila Kondej Coaching - Custom Styles
   Brand Colors from Logo:
   - Cream: #E8DCD1
   - Terracotta: #A67563
   - Dark: #1a1a1a
   ============================================= */

/* Form Row Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: start;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 2fr;
        gap: 5rem;
    }
}

/* Input Fields with Interactive Border */
.input-field {
    width: 100%;
    border: 2px solid #E8DCD1;
    border-radius: 0.75rem;
    padding: 1.125rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.input-field:hover {
    border-color: #C49484;
}

.input-field:focus {
    outline: none;
    border-color: #A67563;
    box-shadow: 0 0 0 4px rgba(166, 117, 99, 0.15);
}

/* Required Asterisk */
.required-asterisk {
    color: #A67563;
    margin-left: 2px;
}

/* Custom Radio Buttons */
.custom-radio {
    accent-color: #A67563;
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.custom-radio:hover {
    transform: scale(1.1);
}

/* Form Container with Interactive Border */
.form-container {
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #E8DCD1, #A67563, #E8DCD1) border-box;
    transition: all 0.4s ease;
}

.form-container:hover {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #A67563, #C49484, #A67563) border-box;
    box-shadow: 0 20px 40px rgba(166, 117, 99, 0.15);
}

/* Profile Image Border Animation */
.profile-border {
    border: 4px solid #E8DCD1;
    transition: all 0.3s ease;
}

.profile-border:hover {
    border-color: #A67563;
    box-shadow: 0 0 20px rgba(166, 117, 99, 0.3);
    transform: scale(1.02);
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #A67563, #8B5D4C);
    color: white;
    font-weight: bold;
    padding: 1rem 3rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(166, 117, 99, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #8B5D4C, #A67563);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(166, 117, 99, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Section Dividers */
.section-divider {
    border-bottom: 1px solid #E8DCD1;
    padding-bottom: 3rem;
    transition: border-color 0.3s ease;
}

.section-divider:hover {
    border-bottom-color: #C49484;
}

/* Label Styling */
.form-label {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.form-row:hover .form-label {
    color: #A67563;
}

/* Radio Option Hover */
.radio-option {
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.radio-option:hover {
    background-color: rgba(232, 220, 209, 0.5);
}

/* =============================================
   Mobile Responsive Styles
   ============================================= */

/* Mobile form row - stack and center */
@media (max-width: 767px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .form-row > label {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .form-row > div {
        width: 100%;
    }

    .input-field {
        text-align: center;
        padding: 1rem 1rem;
    }

    .section-divider {
        padding-bottom: 2rem;
    }

    .btn-submit {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    /* Center radio options on mobile */
    .radio-option {
        justify-content: center;
    }

    /* Textarea left-align text for readability */
    textarea.input-field {
        text-align: left;
    }
}

/* Country selector */
.country-select {
    min-width: 160px;
    cursor: pointer;
    font-size: 16px;
}

.country-select option {
    padding: 8px;
}

/* Small phones */
@media (max-width: 400px) {
    .form-container {
        border-width: 2px;
        border-radius: 1.5rem;
    }

    .input-field {
        padding: 0.875rem 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
