:root {
    --primary-color: #61a0ff;
    --text-color: #e0e0e0;
    --background-color: #121212;
    --card-color: #1e1e1e;
    --accent-color: #ff7e5f;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.22);
    --transition: all 0.3s ease;
    --muted-text: #a0a0a0;
    --card-border: #2d2d2d;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--background-color);
    background-image: linear-gradient(to bottom right, #121212, #1a1a1a, #121212);
    color: var(--text-color);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.1rem;
    color: var(--muted-text);
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background: var(--card-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--card-border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    border-color: #3d3d3d;
}

.card h2 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #333;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    min-width: 180px;
    font-weight: 600;
    color: #b8b8b8;
}

.contact-item span {
    flex: 1;
}

.note {
    background-color: rgba(97, 160, 255, 0.07);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    color: var(--muted-text);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
    text-shadow: 0 0 8px rgba(97, 160, 255, 0.3);
}

a:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
    box-shadow: 0 0 6px rgba(255, 126, 95, 0.6);
}

a:hover {
    color: var(--accent-color);
}

a:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #666;
    font-size: 0.9rem;
    padding: 15px 0;
    border-top: 1px solid #333;
}

/* Human verification warning message */
.verification-warning {
    background-color: rgba(240, 180, 41, 0.1);
    border-left: 4px solid #f0b429;
    padding: 8px 12px;
    margin-top: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #e0b868;
    border-radius: 3px;
    display: flex;
    align-items: center;
    clear: both; /* Ensures it appears on its own line */
}

.verification-warning::before {
    content: '⚠️';
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Email placeholder styles */
.email-placeholder {
    cursor: pointer;
    padding: 8px 10px;
    background-color: rgba(58, 110, 165, 0.1);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: background-color 0.2s;
    border: 1px dashed rgba(58, 110, 165, 0.3);
}

.email-placeholder:hover {
    background-color: rgba(58, 110, 165, 0.2);
}

.email-placeholder .placeholder-text {
    color: var(--primary-color);
    font-weight: 500;
}

.email-placeholder .bot-warning {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.9);
    color: #ff3b30;
    padding: 4px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 500;
    box-shadow: 0 0 5px rgba(255, 59, 48, 0.4);
    border: 1px solid rgba(255, 59, 48, 0.3);
    animation: fadeIn 0.3s ease-in;
    z-index: 10;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.email-placeholder .hover-timer {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 3px;
    background-color: var(--accent-color);
    width: 0%;
    transition: width 0.2s linear;
}

.email-hidden {
    display: none;
}

/* Email countdown timer styles */
.email-countdown {
    width: 100%;
    height: 5px;
    background-color: #eee;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.email-countdown-bar {
    height: 100%;
    width: 100%;
    background-color: var(--primary-color, #3a6ea5);
    border-radius: 3px;
    transition: width 0.1s linear, background-color 0.3s ease;
}

.email-countdown-info {
    font-size: 0.85em;
    margin-top: 5px;
    text-align: center;
    color: var(--primary-color, #3a6ea5);
    transition: color 0.3s ease;
    font-style: italic;
}

/* CAPTCHA Modal Styles */
.captcha-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.captcha-content {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.captcha-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.close-captcha {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close-captcha:hover {
    color: #333;
}

.captcha-code {
    margin: 20px 0;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 5px;
    text-align: center;
    letter-spacing: 8px;
    font-size: 24px;
    font-family: monospace;
    user-select: text; /* Changed to allow selection to bait bots */
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    cursor: text; /* Add text cursor to subtly encourage selection */
    position: relative;
    overflow: hidden;
    border: 1px solid #444;
}

/* Lines through the CAPTCHA to confuse OCR */
.captcha-code::before, .captcha-code::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.25); /* Light lines for dark background */
    z-index: 1;
}

.captcha-code::before {
    top: 45%;
    transform: rotate(-1deg);
}

.captcha-code::after {
    top: 55%;
    transform: rotate(2deg);
}

/* Individual digit styling */
.captcha-digit {
    display: inline-block;
    transform: rotate(var(--rotation));
    position: relative;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-weight: 700;
}

/* Fuzzy/noisy background for each digit to confuse OCR */
.captcha-digit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.25; /* Reduced opacity for better digit visibility */
    z-index: -1;
    pointer-events: none;
}

.input-group {
    display: flex;
    margin-bottom: 15px;
}

.input-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    letter-spacing: 4px;
    text-align: center;
    background-color: #333;
    color: white;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(97, 160, 255, 0.5);
}

.input-group button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 0 4px 4px 0;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.input-group button:hover {
    background-color: #2c5282;
}

#captcha-message {
    min-height: 20px;
}

#captcha-message .error {
    color: #ff6b6b;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

#captcha-message .success {
    color: #4ade80;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(74, 222, 128, 0.3);
}

@media (max-width: 600px) {
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-item strong {
        margin-bottom: 5px;
    }
}
