/* 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;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    margin: 0 auto;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main content */
.main-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Buttons container */
.buttons-container {
    display: flex;
    gap: 1rem;
    /* No extra bottom margin (it makes the buttons look shifted upward inside the card) */
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 140px;
    justify-content: center;
}

.btn-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-accept {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.btn-accept:active {
    transform: translateY(0);
}

.btn-reject {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: white;
}

.btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.3);
}

.btn-reject:active {
    transform: translateY(0);
}

.btn-submit {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    width: 100%;
    margin-bottom: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.btn-back {
    background: #f5f5f5;
    color: #666;
    width: 100%;
}

.btn-back:hover {
    background: #e0e0e0;
}

.btn-close {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    width: 100%;
}

.btn-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

/* Contact form styles */
.contact-form {
    animation: slideIn 0.4s ease;
}

.contact-form h2 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.8rem;
}

.contact-form > p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.contact-options {
    margin-bottom: 2rem;
    /* Keep inputs aligned with action buttons */
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.option-group {
    margin-bottom: 1.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #2196F3;
    background: #2196F3;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contact-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    max-width: 100%;
    background: #fff;
    color: #333;
    appearance: none;
    display: block;
}

.contact-input::placeholder {
    color: #9aa0a6;
}

.contact-input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Match the width of the contact inputs section */
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal {
    background: white;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 1.1rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
}

/* Success message */
.success-message {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: slideIn 0.4s ease;
}

.success-content h3 {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.success-content p {
    color: #666;
    font-size: 1.1rem;
}

.success-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.success-actions .btn {
    width: 100%;
    max-width: 420px;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    /* On small screens, avoid vertical "center" clipping/awkwardness */
    body {
        align-items: flex-start;
        padding: 16px 0 32px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    /* Only stack + cap the landing buttons (accept/reject) */
    .buttons-container .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .modal {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 1rem;
    }

    .contact-form h2 {
        font-size: 1.4rem;
    }

    .contact-form > p {
        margin-bottom: 1.25rem;
        font-size: 1rem;
    }

    .contact-options {
        margin-bottom: 1.25rem;
    }

    .option-group {
        margin-bottom: 1rem;
    }

    .radio-label {
        font-size: 1.05rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .contact-input {
        padding: 0.9rem;
    }
}