/* ============================================
   PROPOSAL BID - LANDING PAGE STYLES
   ============================================ */

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4f7 50%, #e8f0fe 100%);
    background-image: 
        url('https://i.postimg.cc/GtGW87Bz/bg.png'),
        linear-gradient(135deg, #e8f0fe 0%, #d4e4f7 50%, #e8f0fe 100%);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin: 0;
    min-height: 100vh;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.container {
    max-width: 440px;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 40px 36px 32px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: containerFadeIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 4px;
    background: linear-gradient(90deg, #0078d4, #00bcf2, #0078d4);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

@keyframes containerFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.brand {
    font-size: 14px;
    font-weight: 600;
    color: #252423;
    letter-spacing: -0.2px;
}

.brand span {
    color: #0078d4;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #605e5c;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #107c10;
}

.status-dot.ready {
    background: #107c10;
}

.status-dot.loading {
    background: #ffaa44;
    animation: pulse 1.2s ease-in-out infinite;
}

.status-dot.done {
    background: #107c10;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* ============================================
   ICON & TITLE
   ============================================ */
.icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.icon-wrap .shield {
    font-size: 36px;
    color: #0078d4;
}

h1 {
    font-size: 20px;
    font-weight: 600;
    color: #252423;
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.subtitle {
    text-align: center;
    font-size: 14px;
    color: #605e5c;
    margin-bottom: 28px;
    font-weight: 400;
    line-height: 1.5;
}

/* ============================================
   STATUS LINE
   ============================================ */
.status-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #605e5c;
    padding: 6px 0;
    border-bottom: 1px solid #edebe9;
    padding-bottom: 14px;
    min-height: 40px;
}

.status-line .label-status {
    font-weight: 400;
}

.icon-svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================================
   TURNSTILE
   ============================================ */
.turnstile-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0 10px;
    min-height: 80px;
}

.turnstile-wrapper .cf-turnstile {
    margin: 0 auto;
}

.turnstile-status {
    text-align: center;
    font-size: 13px;
    color: #8a8886;
    margin: 8px 0 12px;
    padding: 8px;
    border-radius: 4px;
    min-height: 36px;
    transition: all 0.3s ease;
}

.turnstile-status.verified {
    color: #107c10;
    background: #f1faf1;
}

.turnstile-status.error {
    color: #d13438;
    background: #fdf0f0;
}

.turnstile-status.loading {
    color: #ffaa44;
    background: #fffbf0;
}

.turnstile-status.demo {
    color: #0078d4;
    background: #f3f8fe;
}

.turnstile-status.success {
    color: #107c10;
    background: #f1faf1;
}

.turnstile-config-status {
    text-align: center;
    font-size: 12px;
    color: #8a8886;
    padding: 8px;
    background: #faf9f8;
    border-radius: 4px;
    margin: 8px 0;
    border: 1px solid #edebe9;
}

/* ============================================
   VERIFY SECTION
   ============================================ */
.verify-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 16px 0 24px;
}

.verify-btn-demo {
    padding: 14px 32px;
    background: #0078d4;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.verify-btn-demo:hover:not(:disabled) {
    background: #106ebe;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

.verify-btn-demo:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.verify-btn-demo.loading {
    background: #6c757d;
}

.verify-btn-demo.success {
    background: #107c10;
}

.verify-btn-demo.success:hover {
    background: #0d8a0d;
}

.verify-btn-demo.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.demo-verify-btn {
    padding: 12px 24px;
    background: #0078d4;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin: 8px 0;
}

.demo-verify-btn:hover {
    background: #106ebe;
    transform: translateY(-1px);
}

.demo-verify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   WIDGET
   ============================================ */
.widget {
    border: 1px solid #edebe9;
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #faf9f8;
    min-height: 56px;
}

.widget .left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget .left .text {
    font-size: 14px;
    color: #252423;
}

.widget .left .text small {
    display: block;
    font-size: 12px;
    color: #8a8886;
    font-weight: 400;
}

.widget .check {
    display: none;
}

.widget.verified .check {
    display: block;
}

.widget.verified .left .text small {
    color: #107c10;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(237, 235, 233, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8a8886;
}

.footer span {
    color: #605e5c;
}

.footer .sep {
    color: #edebe9;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }
    
    .container {
        padding: 28px 20px 24px;
        border-radius: 8px;
    }
    
    h1 {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 20px 16px 20px;
    }
    
    .verify-btn-demo {
        font-size: 14px;
        padding: 12px 24px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .container {
        border: 2px solid #000;
        background: #fff;
    }
    
    .verify-btn-demo {
        border: 2px solid #000;
    }
}

.verify-btn-demo:focus-visible {
    outline: 3px solid #1a5bbf;
    outline-offset: 2px;
}

@media print {
    body {
        background: #fff !important;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border: 1px solid #ddd;
        background: #fff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    .verify-btn-demo {
        display: none !important;
    }
}