/* ==========================================
   PT MODERNLAND REALTY - CONTACT PAGE STYLES
   Styles khusus untuk halaman Contact
   ========================================== */

/* === CONTACT PAGE SECTION === */
.contact-page-section {
    width: 100%;
    min-height: 100vh;
    padding: 80px 0 120px 0;
    background-color: white;
}

.contact-container {
    max-width: 1296px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === CATEGORY TABS (SAME AS CAREER) === */
.contact-category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
    margin-left: 0;
    position: relative;
}

.contact-category-tabs::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
    z-index: 0;
}

.category-tab {
    flex: 0 0 calc(50% - 0.5rem);
    padding: 1rem 2rem;
    font-family: "Poppins", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
    white-space: nowrap;
}

.category-tab::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: all 0.3s ease;
}

.category-tab:hover {
    color: #dc2626;
}

.category-tab.active {
    color: #000;
    font-weight: 600;
}

.category-tab.active::after {
    height: 8px;
    background: #dc2626;
    border-radius: 8px 8px 0 0;
    z-index: 2;
}

.category-tab:focus {
    outline: none;
}

/* === CONTACT SECTIONS === */
.contact-section {
    display: none;
}

.contact-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === SECTION INTRO === */
.section-intro {
    margin-bottom: 3rem;
}

.section-title {
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #000000;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.section-description {
    font-family: "Poppins", sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #71717a;
    margin: 0;
    line-height: 1.6;
}

/* === CONTENT WRAPPER (TWO COLUMNS) === */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
}

.form-column {
    width: 100%;
}

.info-column {
    width: 100%;
}

/* === FORM STYLES === */
.form-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-family: "Poppins", sans-serif;
}

.required {
    color: #dc2626;
    font-weight: 700;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    color: #000;
    background: white;
    border: 2px solid #e4e4e7;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input:hover,
.form-textarea:hover {
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.form-textarea {
    resize: none;
}

.form-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    font-family: "Poppins", sans-serif;
}

/* === CUSTOM DROPDOWN STYLES (SAME AS NEWS PAGE) === */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-button {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    background: white;
    border: 2px solid #e4e4e7;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
}

.dropdown-button:hover {
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
    transform: translateY(-1px);
}

.dropdown-button.active {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.dropdown-button.placeholder {
    color: #71717a;
}

.dropdown-value {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.dropdown-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e4e4e7;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.875rem 1.25rem;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #dc2626;
    color: white;
}

.dropdown-item.active {
    font-weight: 600;
}

/* Hide native select elements */
.form-select {
    display: none;
}

/* === BUTTONS === */
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: #dc2626;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.btn-submit:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-icon {
    width: 1rem;
    height: 1rem;
}

/* === COMPANY INFO BOX === */
.company-info-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.info-box-title {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-family: "Poppins", sans-serif;
}

.info-box-title:first-child {
    margin-top: 0;
}

/* === COMPANY INFO MAP === */
.company-info-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.company-info-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    font-family: "Poppins", sans-serif;
}

.info-icon {
    width: 1rem;
    height: 1rem;
    color: #dc2626;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.info-subtext {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.info-list {
    font-size: 0.875rem;
    color: #374151;
    font-family: "Poppins", sans-serif;
}

.info-list p {
    margin-bottom: 0.5rem;
}

/* === WHISTLEBLOWING STYLES === */
.whistleblowing-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fef2f2;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

.whistleblowing-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #dc2626;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.whistleblowing-description {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
    margin-top: 0.5rem;
    font-family: "Poppins", sans-serif;
}

/* === SUCCESS MESSAGE === */
.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.success-message .success-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #16a34a;
    flex-shrink: 0;
}

.success-content {
    flex: 1;
}

.success-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #14532d;
    margin-bottom: 0.5rem;
    font-family: "Poppins", sans-serif;
}

.success-text {
    font-size: 0.875rem;
    color: #15803d;
    margin-bottom: 1rem;
    font-family: "Poppins", sans-serif;
}

.tracking-code-box {
    background: white;
    border: 2px solid #16a34a;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tracking-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    font-family: "Poppins", sans-serif;
}

.tracking-code {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: "Courier New", monospace;
    color: #000;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    background: #16a34a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.btn-copy:hover {
    background: #15803d;
}

.btn-text {
    display: inline-block;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #15803d;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.btn-text:hover {
    color: #14532d;
    text-decoration: underline;
}

/* === WARNING BOX === */
.warning-box {
    background: #fef3c7;
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.warning-box p {
    font-size: 0.875rem;
    color: #854d0e;
    margin: 0;
    font-family: "Poppins", sans-serif;
}

/* === FILE UPLOAD STYLES === */
.file-upload-container {
    position: relative;
    margin-bottom: 1rem;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: #dc2626;
    background: #fef2f2;
}

.upload-icon {
    width: 3rem;
    height: 3rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.upload-text {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
    font-family: "Poppins", sans-serif;
}

.upload-hint {
    font-size: 0.75rem;
    color: #6b7280;
    font-family: "Poppins", sans-serif;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.file-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #dc2626;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    font-family: "Poppins", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.75rem;
    color: #6b7280;
    font-family: "Poppins", sans-serif;
}

.file-remove {
    padding: 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #dc2626;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.file-remove:hover {
    color: #b91c1c;
}

.file-remove svg {
    width: 1.25rem;
    height: 1.25rem;
}

#file-size-info {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

#file-size-info.warning {
    color: #dc2626;
    font-weight: 600;
}

/* === TRACK REPORT SECTION === */
.track-report-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.track-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
    font-family: "Poppins", sans-serif;
}

.track-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-family: "Poppins", sans-serif;
}

.track-form {
    display: flex;
    gap: 1rem;
}

.track-form .form-input {
    flex: 1;
}

.btn-track {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: #1f2937;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
    white-space: nowrap;
}

.btn-track:hover {
    background: #111827;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.3);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .contact-container {
        padding: 0 2rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr 350px;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-page-section {
        padding: 60px 0 80px 0;
    }

    .contact-container {
        padding: 0 1rem;
    }

    .contact-category-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        gap: 0;
    }

    .contact-category-tabs::-webkit-scrollbar {
        display: none;
    }

    .contact-category-tabs::after {
        display: none;
    }

    .category-tab::after {
        display: block;
    }

    .category-tab:not(.active)::after {
        background: #000;
        height: 2px;
    }

    .category-tab {
        flex: 0 0 auto;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .company-info-box {
        position: static;
        margin-bottom: 1.5rem;
    }

    .company-info-map {
        height: 300px;
        border-radius: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 1.5rem;
    }

    .track-form {
        flex-direction: column;
    }

    .btn-track {
        width: 100%;
        justify-content: center;
    }

    .tracking-code-box {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-copy {
        width: 100%;
        justify-content: center;
    }

    .whistleblowing-header {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .contact-page-section {
        padding: 40px 0 60px 0;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-description {
        font-size: 0.9375rem;
    }

    .form-container {
        padding: 1rem;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .tracking-code {
        font-size: 1.125rem;
    }

    .category-tab {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* === SMOOTH SCROLLING === */
html {
    scroll-behavior: smooth;
}

/* === LOADING STATE === */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f4f6;
    border-top-color: #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* === TRACKING CODE MODAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-icon {
    width: 3rem;
    height: 3rem;
    color: #16a34a;
    flex-shrink: 0;
    background: #f0fdf4;
    padding: 0.75rem;
    border-radius: 50%;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    font-family: "Poppins", sans-serif;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.5rem 0 0 0;
    font-family: "Poppins", sans-serif;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-text {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-family: "Poppins", sans-serif;
}

.modal-tracking-box {
    background: #f0fdf4;
    border: 2px solid #16a34a;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-tracking-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #15803d;
    margin-bottom: 0.5rem;
    font-family: "Poppins", sans-serif;
}

.modal-tracking-code {
    font-size: 2rem;
    font-weight: 700;
    font-family: "Courier New", monospace;
    color: #000;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.modal-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.modal-warning p {
    font-size: 0.875rem;
    color: #92400e;
    margin: 0;
    font-family: "Poppins", sans-serif;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.btn-download,
.btn-close-modal {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.btn-download {
    background: #16a34a;
    color: white;
}

.btn-download:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-close-modal {
    background: #e5e7eb;
    color: #374151;
}

.btn-close-modal:hover {
    background: #d1d5db;
}

/* === SMOOTH SCROLLING === */
html {
    scroll-behavior: smooth;
}

/* === LOADING STATE === */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f4f6;
    border-top-color: #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* === MODAL RESPONSIVE === */
@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-tracking-code {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn-download,
    .btn-close-modal {
        width: 100%;
    }
}

/* === EMAIL LINKS - no blue, no underline === */
.contact-email-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-email-link:hover {
    color: #dc2626;
    text-decoration: none;
}
