/*
    Enhanced Contact Form Styles
    Matches the look & feel of the Free Resume Review form.
    All rules are scoped to the enhanced contact form so they never
    leak into other parts of the page.
*/

/* --- Hide placeholders until the field is focused --- */
#contactName::placeholder,
#contactEmail::placeholder,
#contactPhoneNumber::placeholder,
#contactMessage::placeholder {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

#contactName:focus::placeholder,
#contactEmail:focus::placeholder,
#contactPhoneNumber:focus::placeholder,
#contactMessage:focus::placeholder {
    opacity: 1;
}

/* --- Phone row (country code + number) --- */
.contact-phone-hint {
    display: block;
    color: #198754;
    font-size: 13px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.contact-phone-hint i {
    margin-right: 4px;
}

.contact-phone-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.contact-cc-wrap {
    flex: 0 0 120px;
    position: relative;
}

#contactCountryFlag {
    position: absolute;
    left: 8px;
    top: 12px;
    z-index: 10;
    font-family: 'Noto Color Emoji', "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", system-ui, sans-serif;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0;
    word-spacing: 0;
    pointer-events: none;
}

#contactCountryCode {
    padding-left: 40px !important;
}

.contact-phone-field {
    flex: 1;
}

.contact-phone-field .form-control {
    width: 100%;
}

/* --- Textarea floating label resting position --- */
.contact-enhanced-field textarea.form-control {
    height: auto !important;
    padding-top: 24px;
    resize: vertical;
}

.contact-enhanced-field textarea.form-control:not(:focus):placeholder-shown + .form-group__label {
    top: 24px;
    transform: translateY(-50%);
}

/* --- Submit button (same style as the review page) --- */
.contact-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.contact-submit-btn:hover {
    background-color: #1d55d8;
    transform: translateY(-1px);
}

.contact-submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

/* --- Responsive tweaks --- */
@media (max-width: 480px) {
    .contact-cc-wrap {
        flex: 0 0 105px;
    }

    .contact-phone-hint {
        font-size: 12px;
    }
}

.review-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.review-form-column {
    order: -1;
    flex: 1;
}

.review-info-column {
    order: 1;
    flex: 1;
}

.review-form-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 0.185rem 1.25rem rgba(10, 10, 10, 0.095) !important;
}

.form-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #0a165e;
    margin-bottom: 25px;
    text-align: left;
}

.submit-button-review {
    width: 100%;
    padding: 15px;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.submit-button-review:hover {
    background-color: #1d55d8;
    transform: translateY(-1px);
}

@media (max-width: 991px) {
    .review-content-wrapper {
        flex-direction: column;
    }

    .review-form-card {
        padding: 24px;
    }

    .resume4pro-default-content.mr40 {
        margin-right: 0 !important;
    }
}

@media (min-width: 796px) and (max-width: 1199px) {
    .review-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }

    .review-form-column {
        order: 1;
        flex: 1 1 45%;
    }

    .review-info-column {
        order: -1;
        flex: 1 1 55%;
        padding-right: 20px;
    }
}

@media (min-width: 1200px) {
    .review-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 60px;
    }

    .review-form-column {
        order: 1;
        flex: 0 0 40%;
        max-width: 40%;
        margin-top: -8%;
    }

    .review-info-column {
        order: -1;
        flex: 0 0 60%;
        max-width: 60%;
    }
}
