/* ================= ROOT VARIABLES ================= */
:root {
    --dark-navy: #08285e;
    --mid-blue: #2068a2;
    --light-blue: #48a7d8;
    --accent-orange: #f8982a;
    --bg-gradient: radial-gradient(circle at top right, #0a337a, #08285e, #051633);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

/* ================= BODY ================= */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--dark-navy);
    background-image: var(--bg-gradient);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* ================= BACKGROUND EFFECT ================= */
.tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: .4;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: move 20s infinite alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--mid-blue);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-orange);
    bottom: -50px;
    left: -50px;
    opacity: .2;
}

@keyframes move {
    from { transform: translate(0,0); }
    to { transform: translate(100px,100px); }
}

/* ================= MAIN CONTAINER ================= */
.container {
    position: relative;
    z-index: 1;
    max-width: 850px;
    width: 90%;
    padding: 60px 40px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: 0 40px 100px rgba(0,0,0,.4);
    text-align: center;
    animation: fadeIn 1s ease-out;
}

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

/* ================= HERO ================= */
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(248,152,42,.15);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem,5vw,3.8rem);
    line-height: 1.1;
    margin-bottom: 16px;
    font-weight: 700;
}

h1 span.highlight {
    background: linear-gradient(to right,#fff,var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 span.domain {
    color: var(--accent-orange);
}

p {
    line-height: 1.7;
    font-size: 1.15rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 48px;
    max-width: 650px;
    margin-inline: auto;
}

/* ================= LINKEDIN BUTTON ================= */
.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 32px;
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    transition: .3s;
}

.linkedin-btn:hover {
    background: rgba(255,255,255,.1);
    transform: translateY(-2px);
}

/* ================= FORM SECTION ================= */
.form-section {
    background: rgba(0,0,0,.2);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.input-group {
    text-align: left;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: .85rem;
    color: var(--light-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.03);
    color: white;
    font-size: 1rem;
}

/* ================= CHECKBOX ================= */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-wrapper span {
    font-size: .95rem;
    color: rgba(255,255,255,.7);
}

/* ================= SUBMIT BUTTON ================= */

.submit-btn {
    width: auto; /* remove full width */
    background: linear-gradient(135deg,var(--mid-blue),var(--light-blue));
    color: white;
    border: none;
    padding: 16px 26px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: .3s ease;
}

.submit-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    background: rgba(255,255,255,.15);
}


/* ================= SUCCESS MESSAGE ================= */
#success-msg {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0,255,127,.1);
    border: 1px solid #00ff7f;
    color: #00ff7f;
    border-radius: 12px;
}

/* ================= TOOLS SECTION ================= */
.tools-section {
    margin-top: 60px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 28px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px);
}

.tools-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 28px;
    text-align: center;
}

.tools-title span {
    color: var(--accent-orange);
}

.tool-tabs {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tool-tab {
    padding: 14px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.06);
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: .3s ease;
}

.tool-tab:hover,
.tool-tab.active {
    background: linear-gradient(135deg,var(--mid-blue),var(--light-blue));
    border-color: transparent;
    transform: translateY(-2px);
}

.tool-panel {
    display: none;
    animation: fadeIn .35s ease-in-out;
}

/* ===== TOOL BUTTON ROW ===== */
.btn-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 25px;
}

@media (max-width: 768px) {
    .btn-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.tool-panel.active {
    display: block;
}

.tool-panel iframe {
    width: 100%;
    height: 560px;
    border: none;
    border-radius: 20px;
    background: #fff;
}

/* ================= NAVIGATION ================= */
.top-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: .3s ease;
    text-decoration: none;
}

.nav-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(32,104,162,.35),
        rgba(72,167,216,.35)
    );
    transform: translateY(-2px);
    border-color: transparent;
}

/* ================= FOOTER ================= */
.footer {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: .85rem;
}

.footer a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: .3s;
}

.footer a:hover {
    color: var(--accent-orange);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .container { padding: 40px 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .tools-section { padding: 28px 20px; }
    .tool-tab { width: 100%; text-align: center; }
    .tool-panel iframe { height: 520px; }
    .top-nav { flex-direction: column; align-items: stretch; }
    .top-nav .nav-btn { width: 100%; justify-content: center; }

    .captcha-row {
    flex-direction: column;
    align-items: stretch;
    }
}

@media (max-width: 420px) {
    .top-nav .nav-btn {
        font-size: .9rem;
        padding: 14px 16px;
    }
}

/* ================= LOGIN EXTRA ================= */

#section-login {
    margin-top: 60px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: nowrap; /* keep in same row desktop */
}



.captcha-row span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--light-blue);
}

.captcha-row input {
    width: 100px;
    text-align: center;
}

.forgot-wrapper {
    margin-top: 20px;
    text-align: center;
}

.forgot-btn {
    background: transparent;
    border: none;
    color: var(--accent-orange);
    font-weight: 600;
    cursor: pointer;
    font-size: .95rem;
    transition: .3s;
}

.forgot-btn:hover {
    text-decoration: underline;
}

.success-msg {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0,255,127,.1);
    border: 1px solid #00ff7f;
    color: #00ff7f;
    border-radius: 12px;
}

/* ================= RESET MODAL ================= */

.reset-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}


.reset-modal-box {
    background: #0f2a5c;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    position: relative;

    animation: fadeIn .3s ease;
}


.reset-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #fff;
}

.reset-btn {
    background: #b3261e;
    color: #fff;
    border: none;
    padding: 16px 26px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.reset-btn:hover {
    background: #d32f2f;
}

#cclResult,
#licenseResult {
    text-align: left;
    color: #1a1a2e;
    margin-top: 25px;
    line-height: 1.6;
}


/* ================= INLINE RESET PASSWORD ================= */

#resetBox {
    animation: fadeIn .3s ease;
}

/* Mobile stacking */
@media (max-width: 768px) {

    #resetBox .captcha-row {
        flex-direction: column;
        align-items: stretch;
    }

    #resetBox .submit-btn {
        width: 100%;
    }
}

.hidden {
    display: none !important;
}

.login-wrapper {
    position: relative;
}

.login-wrapper .form-section {
    width: 100%;
}


/* ================= LOGIN FORM SWITCHER ================= */

.login-container {
    position: relative;
    min-height: 420px; /* adjust if needed */
}

.login-container .form-section {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s ease;
}

.login-container .form-section.active-form {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
}

/* ===== ACTION ROW FOR CONSISTENT BUTTON LAYOUT ===== */
.action-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px; /* Gap from input field */
}

.action-row .submit-btn,
.action-row .reset-btn {
    width: 140px; /* Same fixed width for both buttons */
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

/* Ensure reset button matches submit button styling */
.reset-btn {
    background: #b3261e;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .action-row {
        flex-direction: row; /* Keep side by side on mobile */
        gap: 12px;
    }
    
    .action-row .submit-btn,
    .action-row .reset-btn {
        flex: 1; /* Equal width on mobile */
        width: auto;
    }
}

/* ===== ACTION ROW FOR CONSISTENT BUTTON LAYOUT ===== */
.action-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px; /* Gap from input field */
}

.action-row .submit-btn,
.action-row .reset-btn {
    width: 140px; /* Same fixed width for both buttons */
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

/* Ensure reset button matches submit button styling */
.reset-btn {
    background: #b3261e;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .action-row {
        flex-direction: row; /* Keep side by side on mobile */
        gap: 12px;
    }
    
    .action-row .submit-btn,
    .action-row .reset-btn {
        flex: 1; /* Equal width on mobile */
        width: auto;
    }
}

/* ================= PASSWORD UPDATE VIEW ================= */

/* 1. Form title color matching tools-title */
.form-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 16px;
    text-align: center;
}

.form-title span {
    color: var(--accent-orange);
}

/* 2. Form subtitle (remains same, just ensuring style) */
.form-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    text-align: center;
}

/* 3. Form group with label and input in same row (desktop) */
.form-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    flex: 0 0 220px; /* Fixed width for labels */
    text-align: right;
    margin-bottom: 0;
}

.form-group input {
    flex: 1;
}

/* Show password toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--light-blue);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    transition: 0.3s;
}

.password-toggle:hover {
    color: var(--accent-orange);
}

/* Password input with toggle button space */
.form-group.has-toggle input {
    padding-right: 80px;
}

/* 4. Password rules styling */
.password-rules {
    background: rgba(248, 152, 42, 0.1);
    border: 1px solid rgba(248, 152, 42, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.password-rules small {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 5. Primary button styling (matching submit-btn but always active) */
.primary-btn {
    display: block;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--mid-blue), var(--light-blue));
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: 0.3s ease;
    text-align: center;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(32, 104, 162, 0.4);
}

/* Form message styling */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.form-message .error-msg {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    display: block;
    padding: 12px;
    border-radius: 8px;
}

.form-message .success-msg {
    color: #00ff7f;
    background: rgba(0, 255, 127, 0.1);
    border: 1px solid #00ff7f;
    display: block;
    padding: 12px;
    border-radius: 8px;
}

/* 3. Mobile view - stack label and input vertically */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .form-group label {
        flex: none;
        text-align: left;
        margin-bottom: 8px;
    }
    
    .password-toggle {
        top: 50%;
        transform: translateY(-50%);
        bottom: auto;
    }
}

/* ================= SURVEY VIEW ================= */

/* Survey form specific styles */
#survey-section .form-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

#survey-section .form-group label {
    flex: 0 0 280px; /* Wider label width for longer text */
    text-align: right;
    margin-bottom: 0;
    padding-top: 12px; /* Align with select/input */
}

#survey-section .form-group input,
#survey-section .form-group select,
#survey-section .form-group textarea {
    flex: 1;
}

/* Select dropdown styling */
#survey-section select {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2348a7d8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

#survey-section select:focus {
    outline: 2px solid var(--light-blue);
    outline-offset: 2px;
}

#survey-section select option {
    background: var(--dark-navy);
    color: white;
}

/* Textarea styling */
#survey-section textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: white;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    resize: vertical;
    min-height: 100px;
}

#survey-section textarea:focus {
    outline: 2px solid var(--light-blue);
    outline-offset: 2px;
}

/* Small text under textarea */
#survey-section .form-group small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-align: left;
    margin-left: 296px; /* Align with input field */
}

/* Opinion field - special handling for textarea layout */
#survey-section .form-group:has(textarea) {
    align-items: flex-start;
}

#survey-section .form-group:has(textarea) label {
    padding-top: 16px;
}

/* Conditional field styling */
#toolNameGroup {
    animation: fadeIn 0.3s ease;
}

/* Mobile view - stack vertically */
@media (max-width: 768px) {
    #survey-section .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    #survey-section .form-group label {
        flex: none;
        text-align: left;
        margin-bottom: 8px;
        padding-top: 0;
    }
    
    #survey-section .form-group small {
        margin-left: 0;
    }
    
    #survey-section select {
        background-position: right 12px center;
    }
}

/* ================= RESET PASSWORD VIEW WRAPPER ================= */

/* Reset password specific form styling */
#reset-password-section .form-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

#reset-password-section .form-group label {
    flex: 0 0 220px; /* Fixed width for labels */
    text-align: right;
    margin-bottom: 0;
}

#reset-password-section .form-group input {
    flex: 1;
}

/* Show password toggle for reset form */
#reset-password-section .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--light-blue);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    transition: 0.3s;
}

#reset-password-section .password-toggle:hover {
    color: var(--accent-orange);
}

/* Password input with toggle button space */
#reset-password-section .form-group.has-toggle input {
    padding-right: 80px;
}

/* Info message styling for "Processing..." */
.form-message .info-msg {
    color: var(--light-blue);
    background: rgba(72, 167, 216, 0.1);
    border: 1px solid rgba(72, 167, 216, 0.3);
    display: block;
    padding: 12px;
    border-radius: 8px;
}

/* Mobile view - stack label and input vertically */
@media (max-width: 768px) {
    #reset-password-section .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    #reset-password-section .form-group label {
        flex: none;
        text-align: left;
        margin-bottom: 8px;
    }
    
    #reset-password-section .password-toggle {
        top: 50%;
        transform: translateY(-50%);
        bottom: auto;
    }
}

/* ================= LOGIN PASSWORD TOGGLE ================= */

/* Outer group — no longer the positioning parent */
#section-login .input-group {
    /* position:relative removed — moved to pw-input-wrap inner wrapper */
}

/* Inner wrapper: wraps ONLY the input + button, not the label.
   top:50% is now relative to input height (~52px), so the button
   centres perfectly on the input regardless of label height. */
#section-login .pw-input-wrap {
    position: relative;
    width: 100%;
}

#section-login .pw-input-wrap input {
    padding-right: 80px;
}

#section-login .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--light-blue);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    transition: 0.3s;
}

#section-login .password-toggle:hover {
    color: var(--accent-orange);
}

/* Mobile — no change needed, top:50%/translateY(-50%) already correct */
@media (max-width: 768px) {
    #section-login .password-toggle {
        top: 50%;
        transform: translateY(-50%);
        bottom: auto;
    }
}

.about-section {
    text-align: left;
}

.about-section .tools-title {
    text-align: center; /* Keep title centered */
}

.about-section .tools-title span {
    color: #ffffff; /* Or any color you want */
}

.about-section .tools-title span {
    color: var(--accent-orange);
}

/* ================= ABOUT SECTION ENHANCEMENT ================= */

.about-section {
    text-align: left;
    line-height: 1.75;
}

/* Professional Subheading Style */
.about-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;

    color: var(--light-blue);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

/* Improve paragraph spacing */
.about-section p {
    margin-bottom: 20px;
    color: rgba(255,255,255,.85);
}

/* Improve list alignment */
.about-section ul {
    margin: 20px 0 30px 20px;
    padding-left: 10px;
}

.about-section ul li {
    margin-bottom: 10px;
    color: rgba(255,255,255,.85);
}

/* Subtle section separation */
.about-section h3:first-of-type {
    margin-top: 32px;
}

/* Highlight strong keywords slightly */
.about-section strong {
    color: #ffffff;
    font-weight: 600;
}
