/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

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

header h1 a {
    color: white;
    text-decoration: none;
}

header h1 a:hover {
    opacity: 0.9;
}

.tagline {
    font-size: 1.2em;
    opacity: 0.95;
}

/* Main Content */
main {
    flex: 1;
    padding: 40px 20px;
}

.intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
    color: #555;
}

/* Options Grid */
.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.option-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.option-card h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.option-card p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Forms */
.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-container h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 2em;
}

.form-container > p {
    color: #666;
    margin-bottom: 30px;
}

.gift-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
   padding:30px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Confirmation Page */
.confirmation-box {
    max-width: 700px;
    margin: 0 auto;
}

.confirmation-box h2 {
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
    font-size: 2em;
}

.success-message {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.password-display {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.password-display h3 {
    margin-bottom: 15px;
    color: #333;
}

.password-code {
    font-size: 1.8em;
    font-weight: bold;
    color: #667eea;
    letter-spacing: 2px;
    padding: 15px;
    background: white;
    border-radius: 5px;
    margin: 15px 0;
    word-break: break-all;
}

.password-note {
    color: #856404;
    font-size: 0.95em;
    margin-top: 10px;
}

.next-steps {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.next-steps h3 {
    margin-bottom: 15px;
    color: #667eea;
}

.next-steps ul {
    list-style-position: inside;
    color: #555;
}

.next-steps li {
    padding: 8px 0;
}

/* Error Messages */
.error-message {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Help Text */
.help-text {
    margin-top: 30px;
    padding: 20px;
    background: #e7f3ff;
    border-radius: 8px;
    text-align: center;
}

.help-text p {
    color: #555;
    font-size: 0.95em;
}

/* Gift Display */
.gift-display {
    max-width: 700px;
    margin: 0 auto;
}

.gift-display h2 {
    color: #667eea;
    margin-bottom: 25px;
    text-align: center;
    font-size: 2em;
}

.gift-from {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.gift-from p {
    margin-bottom: 10px;
    color: #555;
}

.gift-from p:last-child {
    margin-bottom: 0;
}

.gift-section {
    background: white;
    border: 2px solid #e9ecef;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.gift-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.gift-section p {
    color: #555;
    line-height: 1.8;
}

.gift-footer {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.accessed-note {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.thank-you {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1em;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

footer p {
    margin: 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        min-height: calc(100vh - 20px);
    }

    header {
        padding: 30px 15px;
    }

    header h1 {
        font-size: 2em;
    }

    main {
        padding: 30px 15px;
    }

    .options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gift-form {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .password-code {
        font-size: 1.4em;
    }
}
