body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
}

/* Navbar styling for consistency */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 5, 6, 0.95);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar .logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.3)) brightness(1.2);
}

.btn-back {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-green);
}

/* Layout structure */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    flex-grow: 1;
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }
}

/* Cards and Glassmorphism */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    height: fit-content;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.section-title-green {
    color: var(--color-green);
}

.section-title-rust {
    color: var(--color-rust);
}

/* Forms inputs */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-green);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 8px rgba(2, 126, 1, 0.3);
}

/* Dynamic Experiences blocks */
.experiences-wrapper {
    margin-bottom: 30px;
}

.experience-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.remove-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--color-rust);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}

.remove-btn:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.add-experience-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px dashed var(--color-green);
    color: var(--color-green);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
}

.add-experience-btn:hover {
    background: rgba(2, 126, 1, 0.05);
    border-style: solid;
}

/* Summary Card */
.summary-card {
    position: sticky;
    top: 140px;
}

.summary-list {
    list-style: none;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    color: var(--text-muted);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.summary-item strong {
    color: var(--text-main);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--color-green) 0%, #039e02 100%);
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(2, 126, 1, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 126, 1, 0.6);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 6, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.success-icon {
    width: 70px;
    height: 70px;
    background: rgba(2, 126, 1, 0.2);
    border: 2px solid var(--color-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px auto;
    font-size: 2.2rem;
    color: var(--color-green);
}

.modal-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Footer */
footer {
    padding: 45px 5%;
    text-align: center;
    background: rgba(5, 5, 6, 0.95);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 60px;
}

/* Option styling to ensure options are readable (white text on dark bg) */
select option {
    background-color: #151518;
    color: #ffffff;
}

/* Google Translate Widget Custom Styling */
#google_translate_element select.goog-te-combo {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    font-family: 'Outfit', sans-serif !important;
    outline: none !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

#google_translate_element select.goog-te-combo:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--color-green) !important;
    box-shadow: 0 0 10px rgba(2, 126, 1, 0.3) !important;
}

#google_translate_element select.goog-te-combo option {
    background-color: #0b0b0c !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
}

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
    margin: 0 !important;
}

iframe.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0px !important;
}