/* ============================================
   Linktree Forms Styling
   ============================================ */

* {
    box-sizing: border-box;
}

.linktree-container {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;
}

.signup-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.signup-wrapper h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* ============================================
   Tier Selection Cards
   ============================================ */

.tier-selector h2 {
    font-size: 20px;
    margin: 30px 0 20px 0;
    color: #333;
    font-weight: 600;
}

.tier-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.tier-card {
    display: block;
    padding: 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
    position: relative;
}

.tier-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0,115,170,0.1);
    transform: translateY(-2px);
}

.tier-card input[type="radio"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.tier-card input[type="radio"]:checked + .tier-info {
    background: #f0f7ff;
    border-left: 4px solid #0073aa;
}

.tier-info {
    padding: 20px;
    transition: all 0.3s ease;
}

.tier-info h3 {
    font-size: 18px;
    margin: 0 0 5px 0;
    color: #333;
    font-weight: 600;
}

.tier-info .price {
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
    margin: 5px 0 10px 0;
}

.tier-info .price span {
    font-size: 14px;
    font-weight: normal;
    color: #666;
}

.tier-info ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.tier-info li {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
    line-height: 1.4;
}

/* ============================================
   Form Styling
   ============================================ */

.linktree-form fieldset {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fafafa;
}

.linktree-form legend {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 0 10px;
    margin-left: -10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.required {
    color: #d32f2f;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.form-group input:invalid:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211,47,47,0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

.form-group.checkbox label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.form-group.checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

/* ============================================
   Status Messages
   ============================================ */

.email-status,
.slug-status {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
}

.email-status.success,
.slug-status.success {
    color: #27ae60;
}

.email-status.error,
.slug-status.error {
    color: #d32f2f;
}

/* ============================================
   Payment Section (Stripe)
   ============================================ */

#stripe-card-element {
    background: white;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 40px;
}

#card-errors {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

/* ============================================
   Form Actions
   ============================================ */

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #005a87;
    box-shadow: 0 4px 8px rgba(0,115,170,0.3);
}

.btn-primary:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-large {
    padding: 14px 40px;
    font-size: 18px;
    min-width: 200px;
}

.button-price {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

.form-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background: #c8e6c9;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.form-status.error {
    background: #ffcdd2;
    color: #c62828;
    border: 1px solid #ef5350;
}

/* ============================================
   Login Link
   ============================================ */

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.login-link a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .signup-wrapper {
        padding: 20px;
    }
    
    .signup-wrapper h1 {
        font-size: 24px;
    }
    
    .tier-cards {
        grid-template-columns: 1fr;
    }
    
    .linktree-form fieldset {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .linktree-container {
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .signup-wrapper {
        padding: 15px;
    }
    
    .signup-wrapper h1 {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .btn-large {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
    }
}
