/* Contact page styles */
.td-page {
    background: #FAFAFA;
    min-height: calc(100vh - 72px);
    padding-bottom: 60px;
}

.td-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.td-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 36px 0 8px;
}

.td-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0A0A0A;
    align-self: flex-start;
    padding-top: 12px;
}

.td-subtitle {
    font-size: 0.82rem;
    color: #6A142C;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 20px;
    min-height: 1.2em;
}

.td-card {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    margin-bottom: 12px;
}

.td-field-row {
    display: flex;
    align-items: center;
    height: 72px;
    padding: 0 16px;
    gap: 12px;
}

.td-field-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #F5F0F1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.td-field-icon svg {
    width: 20px;
    height: 20px;
}

.td-field-body {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.td-label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: #605153;
    pointer-events: none;
    transition: all 0.18s ease;
    transform-origin: left center;
}

.td-label.floated {
    top: 14px;
    transform: translateY(0) scale(0.78);
    color: #6A142C;
}

.td-input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    color: #0A0A0A;
    padding-top: 22px;
    padding-bottom: 0;
}

.td-divider {
    height: 1px;
    background: #E9E0E1;
    margin: 0 16px;
}

.td-checkbox-row {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 56px;
    gap: 10px;
}

.td-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #6A142C;
    cursor: pointer;
    flex-shrink: 0;
}

.td-checkbox-label {
    font-size: 0.875rem;
    color: #0A0A0A;
    cursor: pointer;
    user-select: none;
}

.td-date-row {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 16px;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.td-date-display {
    flex: 1;
    font-size: 0.875rem;
    color: #605153;
    font-weight: 500;
}

.td-date-display.has-value {
    color: #0A0A0A;
}

.td-date-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.td-section-label {
    padding: 10px 16px 4px;
    font-size: 0.75rem;
    color: #605153;
}

.td-termin-row {
    display: flex;
    padding: 0 16px 12px;
    gap: 10px;
}

.td-termin-btn {
    flex: 1;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid #E9E0E1;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: "Inter", sans-serif;
    color: #605153;
    cursor: pointer;
    transition: all 0.15s;
}

.td-termin-btn.active {
    background: rgba(106, 20, 44, 0.08);
    border-color: #6A142C;
    color: #6A142C;
}

.td-termin-btn:hover:not(.active) {
    background: #F9FAFB;
}

.td-policy-row {
    display: flex;
    align-items: flex-start;
    padding: 10px 16px 14px;
    gap: 10px;
}

.td-policy-label {
    font-size: 0.8rem;
    color: #0A0A0A;
    line-height: 1.5;
    cursor: pointer;
}

.td-policy-label a {
    color: #6A142C;
}

.td-submit-btn {
    width: 100%;
    height: 52px;
    background: #6A142C;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(106, 20, 44, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.td-submit-btn:hover:not(:disabled) {
    background: #800020;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(106, 20, 44, .4);
}

.td-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.td-alert {
    width: 100%;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.83rem;
    margin-bottom: 12px;
    display: none;
    line-height: 1.5;
}

.td-alert.show {
    display: block;
}

.td-alert.success {
    background: rgba(22, 163, 74, .1);
    border: 1px solid rgba(22, 163, 74, .25);
    color: #15803d;
}

.td-alert.error {
    background: rgba(220, 38, 38, .1);
    border: 1px solid rgba(220, 38, 38, .25);
    color: #b91c1c;
}

.td-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    border-top-color: #fff;
    animation: tdSpin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes tdSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Contact page specific */
.contact-page {
    background: #FAFAFA;
    min-height: calc(100vh - 72px);
    padding-bottom: 60px;
}

.contact-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 16px;
}

.contact-hero {
    padding: 36px 0 20px;
}

.contact-hero__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0A0A0A;
    margin-bottom: 6px;
}

.contact-hero__sub {
    font-size: 0.875rem;
    color: #605153;
}

.contact-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    margin-bottom: 12px;
}

.cf-field-row {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 0 16px;
    gap: 12px;
}

.cf-field-row--tall {
    min-height: 140px;
    align-items: flex-start;
    padding-top: 16px;
}

.cf-field-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #F5F0F1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-field-icon svg {
    width: 20px;
    height: 20px;
}

.cf-field-body {
    flex: 1;
    position: relative;
    min-height: 72px;
    display: flex;
    align-items: center;
}

.cf-field-body--tall {
    align-items: flex-start;
    padding-top: 22px;
}

.cf-label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: #605153;
    pointer-events: none;
    transition: all 0.18s ease;
    transform-origin: left center;
}

.cf-field-body--tall .cf-label {
    top: 0;
    transform: none;
}

.cf-label.floated {
    top: 6px;
    transform: translateY(0) scale(0.78);
    color: #6A142C;
}

.cf-field-body--tall .cf-label.floated {
    top: -4px;
}

.cf-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    color: #0A0A0A;
    padding-top: 18px;
    padding-bottom: 4px;
    resize: none;
    line-height: 1.5;
}

textarea.cf-input {
    min-height: 100px;
}

.cf-divider {
    height: 1px;
    background: #E9E0E1;
    margin: 0 16px;
}

.cf-submit-btn {
    width: 100%;
    height: 52px;
    background: #6A142C;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(106, 20, 44, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cf-submit-btn:hover:not(:disabled) {
    background: #800020;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(106, 20, 44, .4);
}

.cf-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.cf-alert {
    width: 100%;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.83rem;
    margin-bottom: 12px;
    display: none;
    line-height: 1.5;
}

.cf-alert.show {
    display: block;
}

.cf-alert.success {
    background: rgba(22, 163, 74, .1);
    border: 1px solid rgba(22, 163, 74, .25);
    color: #15803d;
}

.cf-alert.error {
    background: rgba(220, 38, 38, .1);
    border: 1px solid rgba(220, 38, 38, .25);
    color: #b91c1c;
}

.cf-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    border-top-color: #fff;
    animation: cfSpin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes cfSpin {
    to {
        transform: rotate(360deg);
    }
}

.cf-info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    padding: 20px 20px 8px;
    margin-bottom: 12px;
}

.cf-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    font-size: 0.875rem;
    color: #0A0A0A;
}

.cf-info-row a {
    color: #6A142C;
    text-decoration: none;
}

.cf-info-row a:hover {
    text-decoration: underline;
}
