/* css/mobile/contact.css */

.ct-page-section {
    background: #f2ede4;
    min-height: 100vh;
    padding: 0 0 50px;
}

/* ── Container ── */
.ct-container {
    width: 100%;
    margin: 0;
    padding: 20px 14px 0;
    box-sizing: border-box;
}

/* ── Form header ── */
.ct-form-header {
    text-align: center;
    margin-bottom: 22px;
}

.ct-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #B98B2C;
    margin-bottom: 10px;
}

.ct-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 5.5vw, 1.5rem);
    font-weight: 800;
    color: #0a0f1e;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.ct-sub {
    font-size: 0.78rem;
    color: #5a6478;
    line-height: 1.55;
}

/* ── Form card ── */
.ct-form {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e8e2d8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05), 0 12px 28px rgba(0,0,0,0.06);
    padding: 22px 18px;
}

.ct-form-section {
    margin-bottom: 22px;
}
.ct-form-section:last-of-type {
    margin-bottom: 0;
}

.ct-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0a0f1e;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0ece4;
}
.ct-section-title i {
    color: #B98B2C;
    font-size: 1rem;
}

.ct-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}
.ct-field:last-child { margin-bottom: 0; }

.ct-field-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ct-field label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #374151;
}
.ct-field label span {
    color: #B98B2C;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: #0a0f1e;
    background: #faf8f4;
    border: 1.5px solid #e8e2d8;
    border-radius: 9px;
    padding: 11px 14px;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
    width: 100%;
}
.ct-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a6478' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
    border-color: #B98B2C;
    background: #fff;
}

/* ── Inquiry type selector ── */
.ct-inquiry-options {
    display: flex;
    gap: 8px;
}

.ct-inquiry-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 13px 6px;
    background: #faf8f4;
    border: 1.5px solid #e8e2d8;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
}

.ct-inquiry-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ct-inquiry-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    background: rgba(185,139,44,0.10);
    color: #B98B2C;
}

.ct-inquiry-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: #374151;
    text-align: center;
}

.ct-inquiry-option:has(input:checked) {
    border-color: #B98B2C;
    background: linear-gradient(135deg, #fdf3e0 0%, #faecd0 100%);
}

.ct-inquiry-option:has(input:checked) .ct-inquiry-icon {
    background: #B98B2C;
    color: #fff;
}

.ct-inquiry-option:has(input:checked) .ct-inquiry-label {
    color: #8a5c10;
}

/* ── "Other" manual textbox ── */
.ct-other-field {
    margin-top: 12px;
    animation: ctFieldIn 0.3s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes ctFieldIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ct-btn-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

.ct-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #fff;
    color: #5a6478;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.84rem;
    border: 1.5px solid #e2dbcc;
    padding: 13px 24px;
    border-radius: 50px;
    text-decoration: none;
    box-sizing: border-box;
}

.ct-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #8a5c10 0%, #B98B2C 50%, #d9ad55 100%);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.84rem;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(185,139,44,0.4);
    box-sizing: border-box;
}

/* ── Submitting state ── */
.ct-submit.btn-loading {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.92;
    animation: btnLoadingPulse 1.6s ease-in-out infinite;
}
.ct-submit.btn-loading::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    animation: btnSpin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}
@keyframes btnLoadingPulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(185,139,44,0.4); }
    50%      { box-shadow: 0 6px 26px rgba(185,139,44,0.65); }
}

/* ── Success modal ── */
.ct-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 22, 0.65);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ct-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.ct-modal {
    width: 100%;
    max-width: 360px;
    background: #fffefb;
    border-radius: 20px;
    padding: 40px 24px 28px;
    text-align: center;
    position: relative;
    transform: translateY(18px) scale(0.96);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.ct-modal-overlay.open .ct-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ct-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f4f1ec;
    color: #0a0f1e;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-modal-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2dd4a7, #1d7a5f);
    color: #fff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 10px 22px rgba(29,122,95,0.35);
}

.ct-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0a0f1e;
    margin-bottom: 10px;
    line-height: 1.3;
}

.ct-modal-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 22px;
}

.ct-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #8a5c10 0%, #B98B2C 50%, #d9ad55 100%);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    text-decoration: none;
    padding: 13px 24px;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(185,139,44,0.4);
    box-sizing: border-box;
}
