/**
 * ORIGINALLUXURY Membership Signup - Frontend Styles
 * File: assets/css/frontend.css
 */

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    box-sizing: border-box;
}

/* Remove WordPress theme padding/margins from page title */
.wp-block-post-title,
.entry-title,
h1.wp-block-post-title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: none !important; /* Hide the page title entirely since we have our own in the form */
}

/* Remove padding from WordPress content wrapper */
.wp-block-group.alignfull {
    padding-top: 0 !important;
}

.entry-content.alignfull {
    padding-top: 0 !important;
}

/* ========================================
   SIGNUP WRAPPER
   ======================================== */

.ol-signup-wrapper {
    max-width: 62.5rem; /* Increased from 56rem to ~62.5rem (100px wider) */
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.ol-signup-form {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    padding: 3rem;
}

@media (max-width: 768px) {
    .ol-signup-wrapper {
        padding: 1rem 0.75rem;
    }
    
    .ol-signup-form {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }
}

/* ========================================
   FORM HEADER
   ======================================== */

.ol-form-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.ol-form-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, #009BA6 0%, #0072BC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.ol-form-subtitle {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

@media (max-width: 768px) {
    .ol-form-title {
        font-size: 1.75rem;
    }
    
    .ol-form-subtitle {
        font-size: 0.875rem;
    }
}

/* ========================================
   FORM SECTIONS
   ======================================== */

.ol-form-section-block {
    margin-bottom: 2.5rem;
}

.ol-section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ol-section-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, #009BA6 0%, #0072BC 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ol-section-icon i {
    color: #ffffff;
    font-size: 1.125rem;
}

.ol-section-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: -0.5rem 0 1rem 0;
    line-height: 1.5;
}

/* ========================================
   FORM GRID
   ======================================== */

.ol-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .ol-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   FORM GROUPS
   ======================================== */

.ol-form-group {
    margin-bottom: 1.5rem;
}

.ol-form-group:last-child {
    margin-bottom: 0;
}

.ol-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.ol-required {
    color: #ef4444;
    margin-left: 2px;
}

/* ========================================
   FORM INPUTS
   ======================================== */

.ol-form-group input[type="text"],
.ol-form-group input[type="email"],
.ol-form-group input[type="tel"],
.ol-form-group input[type="url"],
.ol-form-group select,
.ol-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    background: #ffffff;
}

@media (max-width: 640px) {
    .ol-form-group input[type="text"],
    .ol-form-group input[type="email"],
    .ol-form-group input[type="tel"],
    .ol-form-group input[type="url"],
    .ol-form-group select,
    .ol-form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.625rem 0.875rem;
    }
    
    .ol-form-group label {
        font-size: 0.8125rem;
    }
}

.ol-form-group input:focus,
.ol-form-group select:focus,
.ol-form-group textarea:focus {
    border-color: #009BA6;
    box-shadow: 0 0 0 3px rgba(0, 155, 166, 0.1);
}

.ol-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.ol-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* URL Input with Icon */
.ol-input-wrapper {
    position: relative;
    width: 100%;
}

.ol-input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.125rem;
    pointer-events: none;
}

.ol-input-wrapper input {
    padding-left: 40px !important;
}

/* Character Count */
.ol-char-count {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: right;
    margin-top: 0.375rem;
}

/* ========================================
   RADIO CARDS
   ======================================== */

.ol-radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ol-radio-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.ol-radio-card:hover {
    border-color: #009BA6;
    background: rgba(0, 155, 166, 0.02);
}

.ol-radio-card input[type="radio"] {
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #009BA6;
    flex-shrink: 0;
}

.ol-radio-card input[type="radio"]:checked {
    background-color: #009BA6;
}

.ol-radio-card:has(input:checked) {
    border-color: #009BA6;
    background: rgba(0, 155, 166, 0.05);
}

.ol-radio-content {
    flex: 1;
}

.ol-radio-title {
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ol-premium-badge {
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #009BA6 0%, #0072BC 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
}

.ol-radio-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ========================================
   INLINE RADIO GROUPS
   ======================================== */

.ol-radio-group-inline {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ol-radio-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
}

.ol-radio-inline:hover {
    border-color: #009BA6;
    background: rgba(0, 155, 166, 0.05);
}

.ol-radio-inline:has(input:checked) {
    border-color: #009BA6;
    background: rgba(0, 155, 166, 0.08);
}

.ol-radio-inline input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: #009BA6;
    margin: 0;
}

.ol-radio-inline span {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

/* ========================================
   CHECKBOX GROUPS
   ======================================== */

.ol-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ol-checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.ol-checkbox-inline:hover {
    border-color: #009BA6;
    background: rgba(0, 155, 166, 0.02);
}

.ol-checkbox-inline:has(input:checked) {
    border-color: #009BA6;
    background: rgba(0, 155, 166, 0.05);
}

.ol-checkbox-inline input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: #009BA6;
    margin: 0;
    flex-shrink: 0;
}

.ol-checkbox-inline span {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

/* ========================================
   CHECKBOX LABELS
   ======================================== */

.ol-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.ol-checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #009BA6;
    flex-shrink: 0;
}

.ol-checkbox-content {
    flex: 1;
}

.ol-checkbox-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.ol-checkbox-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ========================================
   MANDATORY CONSENTS
   ======================================== */

.ol-mandatory-consents {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ol-checkbox-label.ol-mandatory {
    padding: 1rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
}

.ol-checkbox-label.ol-mandatory .ol-checkbox-description {
    color: #78350f;
    font-weight: 500;
}

/* ========================================
   FORM ACTIONS
   ======================================== */

.ol-form-actions {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .ol-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.ol-button-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #009BA6 0%, #0072BC 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ol-button-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 114, 188, 0.3);
}

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

.ol-button-submit i {
    font-size: 1.125rem;
}

.ol-button-secondary {
    color: #6b7280;
    text-decoration: underline;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: color 0.2s;
}

.ol-button-secondary:hover {
    color: #374151;
}

/* ========================================
   FORM FOOTER
   ======================================== */

.ol-form-footer {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.ol-form-footer a {
    color: #009BA6;
    text-decoration: none;
}

.ol-form-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   SUCCESS STATE
   ======================================== */

.ol-signup-success {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ol-signup-success i {
    font-size: 4rem;
    color: #10b981;
    display: block;
    margin-bottom: 1.5rem;
}

.ol-signup-success h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.ol-signup-success p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 640px) {
    .ol-signup-wrapper {
        padding: 1rem 0.75rem;
    }
    
    .ol-section-title {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .ol-section-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .ol-section-icon i {
        font-size: 1rem;
    }
    
    .ol-form-section-block {
        margin-bottom: 2rem;
    }
    
    .ol-form-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .ol-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ol-form-group {
        margin-bottom: 1rem;
    }
    
    .ol-radio-group-inline {
        flex-direction: column;
    }
    
    .ol-radio-inline {
        width: 100%;
    }
    
    .ol-radio-card {
        padding: 1rem;
    }
    
    .ol-checkbox-inline {
        padding: 0.75rem;
    }
    
    .ol-form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .ol-button-submit {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.ol-partner-only {
    transition: all 0.3s ease;
}

/* ========================================
   LOADING ANIMATION
   ======================================== */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

[style*="animation: spin"] {
    animation: spin 1s linear infinite;
}
