/* ===========================
   Landing Page - Pemilihan Rektor
   Universitas Pertamina
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #2d2d2d;
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
}

.mt-2 { margin-top: 12px; }

/* ========== LANGUAGE SWITCHER ========== */
.lang-en { display: none; }

.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 32px 0;
    max-width: 960px;
    margin: 0 auto;
}

.lang-divider {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    user-select: none;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.6);
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lang-btn:hover {
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

.lang-btn.active {
    background: #d4a017;
    border-color: #d4a017;
    color: #fff;
}

/* ========== HERO BANNER (standalone image) ========== */
.hero-banner {
    width: 100%;
    display: block;
    line-height: 0;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== BACKGROUND WRAPPER ========== */
.bg-wrapper {
    background-image:
        linear-gradient(rgba(10, 42, 94, 0.72), rgba(10, 42, 94, 0.72)),
        url('../landing-page/background.png');
    background-repeat: repeat;
    background-size: 600px auto;
}

/* ========== INTRO SECTION ========== */
.intro-section {
    padding: 48px 0 40px;
}

.intro-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.4;
}

.intro-section p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.75;
}

.criteria-block {
    margin-top: 28px;
    background: rgba(255,255,255,0.1);
    border-left: 4px solid #d4a017;
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
}

.criteria-block h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #d4a017;
    margin-bottom: 12px;
}

.criteria-block ul {
    list-style: none;
    padding: 0;
}

.criteria-block ul li {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.88);
    padding: 3px 0 3px 20px;
    position: relative;
}

.criteria-block ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #d4a017;
    font-size: 0.75rem;
    top: 5px;
}

/* ========== SELECTION PROCESS ========== */
.selection-process {
    padding: 40px 0;
}

.selection-process h2,
.timeline-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}

.selection-image {
    overflow-x: auto;
}

.selection-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== TIMELINE ========== */
.timeline-section {
    padding: 40px 0;
}

.timeline-placeholder {
    border: 2px dashed #ccc;
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.95rem;
}

/* ========== ANNOUNCEMENT / REGISTRATION PERIOD ========== */
.announcement-section {
    padding: 20px 0 28px;
}

.announcement-block {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255,255,255,0.03);
    border-left: 4px solid #d4a017;
    padding: 16px 22px;
    border-radius: 0 8px 8px 0;
}

.announcement-title {
    font-size: 1rem;
    font-weight: 700;
    color: #d4a017;
    margin-bottom: 6px;
}

.announcement-dates {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 6px;
}

.announcement-note {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}

@media (max-width: 600px) {
    .announcement-block { padding: 12px 14px; }
    .announcement-dates { font-size: 1rem; }
}

/* ========== REGISTER FORM ========== */
.register-section {
    padding: 48px 0 56px;
}

.register-section h1 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 32px;
    line-height: 1.4;
}

.register-section h2 {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 32px;
    line-height: 1.4;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="tel"],
.register-form select {
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #fff;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.register-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.register-form select option[value=""] { color: #888; }
.register-form select option { color: #333; }

/* Select2 overrides for landing page */
.register-form .select2-container--default .select2-selection--single {
    height: 46px;
    border: none;
    border-radius: 4px;
    background: #fff;
    padding: 9px 16px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}

.register-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333;
    line-height: 28px;
    padding-left: 0;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}

.register-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #888;
}

.register-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 8px;
}

.select2-container--default .select2-results__option {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.register-form input::placeholder { color: #888; }

/* Download buttons */
.download-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.btn-download {
    display: block;
    width: 100%;
    padding: 13px 16px;
    background: #1a4a8e;
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-family: 'Poppins', sans-serif;
    border-radius: 4px;
    transition: background 0.2s;
    text-align: left;
}

.btn-download:hover { background: #0f3570; }

/* Upload / submit file labels */
.upload-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border-radius: 4px;
    padding: 10px 16px;
    cursor: pointer;
}

.upload-label span {
    font-size: 0.88rem;
    color: #333;
    flex: 1;
}

.upload-label input[type="file"] {
    font-size: 0.8rem;
    color: #555;
    flex-shrink: 0;
    max-width: 160px;
}

/* File info shown next to file inputs */
.upload-label .file-info {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: #666;
}

.upload-label.file-valid { background: #f6fffb; border: 1px solid #c7f0db; }
.upload-label.file-invalid { background: #fff5f5; border: 1px solid #f2c6c6; }

/* Submit button */
.submit-wrapper {
    margin-top: 20px;
    text-align: center;
}

.btn-submit {
    background: #d4a017;
    color: #fff;
    border: none;
    padding: 16px 60px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
    background: #b88a14;
    transform: translateY(-2px);
}

/* Button spinner (small) */
.btn-spinner {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    margin-right: 8px;
    -webkit-animation: spin 0.8s linear infinite;
            animation: spin 0.8s linear infinite;
}

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

.btn-submit[disabled] {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
}

/* ========== WHATSAPP CONTACT BAR ========== */
.wa-contact {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.wa-contact img {
    width: 32px;
    height: 32px;
    background: #25d366;
    border-radius: 50%;
    padding: 4px;
}

.wa-contact span {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

/* Make the WhatsApp contact look like normal text but still clickable */
.wa-contact .wa-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.wa-contact .wa-link:hover {
    text-decoration: underline;
    opacity: 0.95;
}


/* ========== HARDFILE INFO ========== */
.info-section {
    padding: 32px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.info-block {
    background: rgba(255,255,255,0.08);
    border-left: 4px solid #d4a017;
    border-radius: 0 8px 8px 0;
    padding: 24px 28px;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.info-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #d4a017;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-block p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 10px;
}

.info-block address {
    font-style: normal;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.8;
}

.info-block address strong {
    display: block;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.info-contact {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.info-correspondence {
    margin: 0 0 8px 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    font-weight: 600;
}

.info-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d4a017;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    word-break: break-all;
    transition: opacity 0.2s;
}

.info-email:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.info-email svg {
    flex-shrink: 0;
}

/* ========== FOOTER ========== */
.main-footer {
    background: transparent;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 28px 24px 36px;
    text-align: center;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-logos img:first-child {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-logos img:last-child {
    height: 168px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .intro-title {
        font-size: 1.1rem;
    }

    .register-section h1 {
        font-size: 1.5rem;
    }

    .register-section h2 {
        font-size: 1.1rem;
    }

    .upload-label {
        flex-direction: column;
        align-items: flex-start;
    }

    .upload-label input[type="file"] {
        max-width: 100%;
    }

    .btn-submit {
        padding: 14px 40px;
        font-size: 1rem;
    }
}
