/* ============================================================
   Woo x Conveo — Contact Form Shortcode
   Shortcode: [conveo_contact_form]
   ============================================================ */

.jrr-contact-form,
.jrr-contact-form * {
    box-sizing: border-box;
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jrr-contact-form {
    width: 100%;
    margin: 0;
    color: #111827;
}

.jrr-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.jrr-contact-field {
    display: grid;
    gap: 7px;
    margin: 0 0 14px !important;
}

.jrr-contact-field label {
    color: rgba(17, 24, 39, 0.82);
    font-size: 12px;
    font-weight: 560;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-transform: uppercase;
}

.jrr-contact-field input,
.jrr-contact-field textarea {
    width: 100%;
    border: 1px solid rgba(16, 24, 39, 0.10) !important;
    border-radius: 14px !important;
    background: rgba(248, 250, 252, 0.92) !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 420 !important;
    line-height: 1.35 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.jrr-contact-field input {
    min-height: 48px;
    padding: 0 14px !important;
}

.jrr-contact-field textarea {
    min-height: 142px;
    padding: 13px 14px !important;
    resize: vertical;
}

.jrr-contact-field input:focus,
.jrr-contact-field textarea:focus {
    border-color: rgba(245, 158, 11, 0.55) !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12) !important;
}

.jrr-contact-topic-select {
    position: relative;
    z-index: 3;
}

.jrr-contact-topic-dropdown {
    position: relative;
}

.jrr-contact-topic-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 66px;
    padding: 11px 14px;
    border: 1px solid rgba(16, 24, 39, 0.10) !important;
    border-radius: 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%) !important;
    color: #111827 !important;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.jrr-contact-topic-trigger:hover,
.jrr-contact-topic-dropdown.is-open .jrr-contact-topic-trigger {
    transform: translateY(-1px);
    border-color: rgba(245, 158, 11, 0.42) !important;
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.12);
}

.jrr-contact-topic-dropdown.has-error .jrr-contact-topic-trigger {
    border-color: rgba(220, 38, 38, 0.42) !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.09);
}

.jrr-contact-topic-trigger-icon,
.jrr-contact-topic-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: #FFFFFF;
    color: #EA580C;
    box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.12), 0 8px 18px rgba(15, 23, 42, 0.05);
}

.jrr-contact-topic-trigger-icon {
    width: 42px;
    height: 42px;
}

.jrr-contact-topic-option-icon {
    width: 38px;
    height: 38px;
}

.jrr-contact-topic-trigger-icon svg,
.jrr-contact-topic-option-icon svg {
    width: 19px;
    height: 19px;
    stroke-width: 2.35;
}

.jrr-contact-topic-trigger-copy,
.jrr-contact-topic-option-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.jrr-contact-topic-trigger-copy {
    flex: 1 1 auto;
}

.jrr-contact-topic-trigger-copy strong,
.jrr-contact-topic-option-copy strong {
    color: #111827;
    font-size: 15px;
    font-weight: 740;
    line-height: 1.16;
}

.jrr-contact-topic-trigger-copy em,
.jrr-contact-topic-option-copy em {
    color: rgba(17, 24, 39, 0.58);
    font-size: 13px;
    font-style: normal;
    font-weight: 430;
    line-height: 1.22;
}

.jrr-contact-topic-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 999px;
    color: #EA580C;
    background: rgba(234, 88, 12, 0.08);
    transition: transform 0.18s ease, background 0.18s ease;
}

.jrr-contact-topic-chevron svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.4;
}

.jrr-contact-topic-dropdown.is-open .jrr-contact-topic-chevron {
    transform: rotate(180deg);
    background: rgba(234, 88, 12, 0.13);
}

.jrr-contact-topic-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    max-height: 370px;
    padding: 8px;
    border: 1px solid rgba(16, 24, 39, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    overflow: auto;
    z-index: 20;
}

.jrr-contact-topic-dropdown.is-open .jrr-contact-topic-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.jrr-contact-topic-option {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 62px;
    padding: 10px;
    border: 1px solid transparent !important;
    border-radius: 14px;
    background: transparent !important;
    color: #111827 !important;
    cursor: pointer;
    text-align: left;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.jrr-contact-topic-option:hover,
.jrr-contact-topic-option.is-selected {
    border-color: rgba(234, 88, 12, 0.16) !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF7ED 100%) !important;
}

.jrr-contact-topic-option.is-selected {
    box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.10);
}

.jrr-contact-topic-option.is-selected .jrr-contact-topic-option-icon {
    background: linear-gradient(135deg, #EA580C 0%, #F59E0B 100%);
    color: #FFFFFF;
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.20);
}

.jrr-contact-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.jrr-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin-top: 2px;
    padding: 0 22px;
    border: 0 !important;
    border-radius: 999px;
    background: linear-gradient(90deg, #EA580C 0%, #F59E0B 62%, #FCD34D 100%) !important;
    color: #FFFFFF !important;
    cursor: pointer;
    font-size: 15px;
    font-weight: 680;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.jrr-contact-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.30);
}

.jrr-contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(16, 24, 39, 0.08);
    background: #FFFFFF;
    color: #374151;
    font-size: 14px;
    font-weight: 480;
    line-height: 1.4;
}

.jrr-contact-alert::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.jrr-contact-alert--success {
    border-color: rgba(22, 163, 74, 0.18);
    background: #F0FDF4;
    color: #166534;
}

.jrr-contact-alert--success::before {
    background: #16A34A;
}

.jrr-contact-alert--error {
    border-color: rgba(220, 38, 38, 0.18);
    background: #FEF2F2;
    color: #991B1B;
}

.jrr-contact-alert--error::before {
    background: #DC2626;
}

@media (max-width: 720px) {
    .jrr-contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .jrr-contact-submit {
        width: 100%;
    }
}
