/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

main {
    padding: 40px;
}

/* Form styles */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

button {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.secondary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: 15px;
}

/* Poll voting styles */
.poll-question {
    text-align: center;
    margin-bottom: 40px;
}

.poll-question h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 400;
}

.question-text {
    font-size: 1.3em;
    color: #666;
}

.voting-section {
    margin-bottom: 40px;
}

.vote-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.vote-btn {
    flex: 1;
    max-width: 200px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.vote-btn.yes-btn {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

.vote-btn.no-btn {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.vote-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.vote-icon {
    font-size: 2.5em;
}

.vote-text {
    font-size: 1.2em;
    font-weight: 600;
}

/* Result and status styles */
.result {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.result h2 {
    color: #28a745;
    margin-bottom: 15px;
}

.poll-link {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.poll-link input {
    flex: 1;
    background: white;
}

#copyBtn {
    width: auto;
    padding: 15px 20px;
    white-space: nowrap;
}

.thank-you {
    text-align: center;
    padding: 30px;
    background: #d4edda;
    border-radius: 12px;
    border: 1px solid #c3e6cb;
}

.thank-you h3 {
    color: #155724;
    margin-bottom: 15px;
}

.thank-you p {
    color: #155724;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none !important;
}

/* Poll info */
.poll-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
}

.time-remaining {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.privacy-note {
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
}

.note {
    font-size: 0.9em;
    color: #6c757d;
    margin: 15px 0;
}

footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9em;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin: 0;
    }
    
    header {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    main {
        padding: 20px;
    }
    
    .vote-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .vote-btn {
        max-width: none;
    }
    
    .poll-link {
        flex-direction: column;
    }
    
    #copyBtn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .poll-question h2 {
        font-size: 1.8em;
    }
    
    .vote-icon {
        font-size: 2em;
    }
}