/* Form Styles */

.main-content {
    padding: 120px 0 60px;
    min-height: 100vh;
    background-color: var(--background-light);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border-left: 4px solid;
}

.alert-error {
    background-color: #fee;
    border-left-color: #e74c3c;
    color: #c0392b;
}

.alert-success {
    background-color: #efe;
    border-left-color: #27ae60;
    color: #229954;
}

.alert-warning {
    background-color: #fffbf0;
    border-left-color: #f39c12;
    color: #d68910;
}

.alert ul {
    margin: 0;
    padding-left: 1.5rem;
}

.alert li {
    margin-bottom: 0.5rem;
}

/* Form Container */
.registration-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.registration-form {
    padding: 2rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: var(--font-sans);
    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: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(178, 154, 125, 0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e74c3c;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-lighter);
    font-size: 12px;
}

/* URL Input Group */
.url-input-group {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.url-prefix {
    background-color: var(--background-light);
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-dark);
    border-right: 1px solid var(--border-color);
    white-space: nowrap;
}

.url-input-group input {
    border: none;
    flex: 1;
    padding: 12px 16px;
}

.url-input-group input:focus {
    box-shadow: none;
}

.url-preview {
    margin-top: 0.5rem;
    padding: 8px 12px;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.url-status {
    font-size: 12px;
    font-weight: 600;
}

.url-status.available {
    color: #27ae60;
}

.url-status.unavailable {
    color: #e74c3c;
}

/* Image Preview */
.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

/* Checkbox */
.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Payment Info */
.payment-info {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.payment-summary {
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.payment-item:last-child {
    border-bottom: none;
}

.payment-item.total {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
}

.payment-note {
    margin-top: 1rem;
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.form-actions .btn {
    min-width: 200px;
}

/* Login Form */
.login-form-container {
    max-width: 400px;
    margin: 0 auto;
    background: var(--background-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    padding: 2rem;
}

.login-form-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Dashboard Forms */
.dashboard-form {
    background: var(--background-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    padding: 2rem;
    margin-bottom: 2rem;
}

.dashboard-form h2 {
    font-family: var(--font-serif);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.form-actions-inline {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.form-actions-inline .btn {
    min-width: auto;
}

/* File Upload */
.file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    left: -9999px;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--background-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload:hover .file-upload-label {
    border-color: var(--primary-color);
    background-color: rgba(178, 154, 125, 0.05);
}

.file-upload-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions .btn {
        min-width: auto;
        width: 100%;
    }
    
    .url-input-group {
        flex-direction: column;
    }
    
    .url-prefix {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .payment-summary {
        padding: 1rem;
    }
    
    .dashboard-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .registration-form {
        padding: 1rem;
    }
    
    .form-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .form-section h2 {
        font-size: 1.3rem;
    }
    
    .login-form-container {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .btn {
    position: relative;
}

.loading .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success States */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #c3e6cb;
    margin-bottom: 1rem;
}

/* Error States */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.field-error {
    border-color: #e74c3c !important;
}

.field-error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* Payment Page Styles */
.payment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.payment-summary-card {
    background: var(--background-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    padding: 2rem;
    height: fit-content;
}

.payment-summary-card h2 {
    font-family: var(--font-serif);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.business-info {
    text-align: center;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.business-info h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.business-info p {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.payment-details {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.payment-item:last-child {
    border-bottom: none;
}

.payment-item.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
}

.payment-features {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.payment-features h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.payment-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.payment-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.payment-form-card {
    background: var(--background-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    padding: 2rem;
}

.payment-form .form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.payment-form .form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.payment-form .form-section h2 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Security Notice */
.security-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2rem;
}

.security-icon {
    font-size: 1.5rem;
}

.security-text h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1rem;
}

.security-text p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Payment Button */
.payment-amount {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.payment-text {
    display: block;
    font-size: 1rem;
}

/* Login Form Specific */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Demo Info */
.demo-info {
    max-width: 400px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    text-align: center;
}

.demo-info h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.demo-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.demo-credentials {
    background: var(--background-white);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.demo-credentials p {
    margin: 0.5rem 0;
    font-family: monospace;
    color: var(--text-dark);
}

.demo-info small {
    color: var(--text-lighter);
    font-size: 0.8rem;
}

/* Responsive Payment */
@media (max-width: 768px) {
    .payment-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .payment-summary-card,
    .payment-form-card {
        padding: 1.5rem;
    }
    
    .payment-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .security-notice {
        flex-direction: column;
        text-align: center;
    }
}
