/* 
SolveIT - Ticket Form Stylesheet
------------------------------------------
Styles for the support ticket form page, matching the FAQ and pricing page themes
*/

/* Import site-wide variables */
:root {
    /* These are copied from the main stylesheet to ensure consistency */
    /* Brand Colors */
    --color-primary-light: #18dafe;
    --color-primary-mid: #777cfe;
    --color-primary-dark: #c926ff;
    --color-gradient-start: #2c28d4;
    --color-gradient-end: #1f2070;
    
    /* Supporting Colors */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-dark: #1a1a2e;
    --color-light: #f8f9fa;
    --color-gray-light: #e9ecef;
    --color-gray: #6c757d;
    --color-gray-dark: #343a40;
    
    /* Text Colors */
    --text-dark: #202124;
    --text-medium: #5f6368;
    --text-light: #9aa0a6;
    
    /* Radius */
    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 12px;
    --radius-extra-large: 24px;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Typography */
    --font-family: 'Poppins', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Ticket hero section styling - similar to FAQ and pricing hero sections */
.ticket-hero {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    color: var(--color-white);
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ticket-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-pattern.svg');
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
}

.ticket-hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.ticket-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    opacity: 0.9;
}

/* Ticket form container styling */
.ticket-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

/* Ticket form styling */
#zohoSupportWebToCase {
    background-color: var(--color-white);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.zsFormClass {
    width: 100% !important;
    background-color: var(--color-white) !important;
    font-family: var(--font-family) !important;
}

/* Form table styling */
.zsFormClass td {
    padding: 15px !important;
    vertical-align: middle;
}

/* Form header styling */
.zsFormClass td strong {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
    display: block;
    padding: var(--spacing-lg);
    padding-top: 60px; /* Increased padding on top by another 5% */
    padding-bottom: calc(var(--spacing-lg) + 8px); /* Added more bottom padding */
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
    margin-top: 40px; /* More space at the top */
    border-radius: var(--radius-large) var(--radius-large) 0 0; /* Rounded corners on top */
}

/* Fix form interactivity issues */
#zohoSupportWebToCase {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 50 !important; /* Higher z-index to ensure it's above everything */
}

#zohoSupportWebToCase input,
#zohoSupportWebToCase select,
#zohoSupportWebToCase textarea,
#zohoSupportWebToCase button {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 55 !important;
}

/* Form field label styling */
.zsFontClass {
    color: var(--text-dark) !important;
    font-family: var(--font-family) !important;
    font-size: 1rem !important;
    font-weight: var(--font-weight-medium) !important;
}

/* Form input styling */
#zohoSupportWebToCase input[type='text'],
#zohoSupportWebToCase input[type='date'],
#zohoSupportWebToCase select,
#zohoSupportWebToCase textarea {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid var(--color-gray-light) !important;
    border-radius: var(--radius-medium) !important;
    font-family: var(--font-family) !important;
    font-size: 1rem !important;
    color: var(--text-dark) !important;
    transition: all var(--transition-normal) !important;
    outline: none !important;
    box-sizing: border-box !important;
}

#zohoSupportWebToCase input[type='text']:focus,
#zohoSupportWebToCase input[type='date']:focus,
#zohoSupportWebToCase select:focus,
#zohoSupportWebToCase textarea:focus {
    border-color: var(--color-primary-mid) !important;
    box-shadow: 0 0 0 3px rgba(119, 124, 254, 0.2) !important;
}

#zohoSupportWebToCase textarea {
    min-height: 150px !important;
    resize: vertical !important;
}

/* Required field styling */
.manfieldbdr {
    border-left: 2px solid var(--color-primary-mid) !important;
}

/* Attachment section styling */
.wtcuploadfile {
    color: var(--color-primary-mid) !important;
    cursor: pointer;
    transition: color var(--transition-normal);
}

.wtcuploadfile:hover {
    color: var(--color-primary-dark) !important;
}

.filenamecls {
    margin-top: 10px !important;
    color: var(--text-dark) !important;
}

/* Submit and reset button styling */
#zohoSupportWebToCase input[type='submit'],
#zohoSupportWebToCase input[type='button'] {
    display: inline-block !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--radius-medium) !important;
    font-weight: var(--font-weight-medium) !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all var(--transition-normal) !important;
    border: none !important;
    font-size: 1rem !important;
    font-family: var(--font-family) !important;
    margin: 0 var(--spacing-sm) !important;
}

#zohoSupportWebToCase input[type='submit'] {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark)) !important;
    color: var(--color-white) !important;
    box-shadow: 0 4px 15px rgba(119, 124, 254, 0.4) !important;
}

#zohoSupportWebToCase input[type='submit']:hover {
    box-shadow: 0 8px 20px rgba(119, 124, 254, 0.6) !important;
    transform: translateY(-2px) !important;
}

#zohoSupportWebToCase input[type='button'] {
    background: transparent !important;
    color: var(--color-primary-mid) !important;
    border: 2px solid var(--color-primary-mid) !important;
}

#zohoSupportWebToCase input[type='button']:hover {
    background: var(--color-primary-mid) !important;
    color: var(--color-white) !important;
}

/* Dropdown and date selectors */
#zohoSupportWebToCase select.wb_selectDate {
    width: auto !important;
    padding: 8px !important;
}

#zohoSupportWebToCase input.wb_cusInput {
    width: 180px !important; /* Increased from 120px to make the date field wider */
}

/* Customer notice section styling */
.customer-notice {
    padding: 0 var(--spacing-md);
    margin-top: -30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 15;
}

.notice-box {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-mid));
    color: var(--color-white);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.notice-box h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-box h3 i {
    margin-right: var(--spacing-sm);
}

.notice-box p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.notice-box .notice-button {
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all var(--transition-normal);
    padding: 8px 15px;
    border-radius: var(--radius-medium);
    background-color: rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-top: var(--spacing-md);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-sm);
}

.notice-box .notice-button i {
    margin-right: 5px;
}

.notice-box .notice-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.notice-box .notice-button:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 767px) {
    .notice-box {
        padding: var(--spacing-md);
    }
    
    .notice-box h3 {
        font-size: 1.1rem;
    }
    
    .notice-box p {
        font-size: 1rem;
    }
}

/* Existing customer notice styling */
.existing-customer-notice {
    margin-bottom: 30px;
    margin-top: -25px;
    text-align: center;
    background-color: var(--color-primary-mid);
    color: var(--color-white);
    padding: 20px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 15;
}

.existing-customer-notice p {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: var(--font-weight-medium);
    margin: 0;
}

.screen-connect-link {
    color: var(--color-white);
    font-weight: var(--font-weight-bold);
    text-decoration: underline;
    transition: all var(--transition-normal);
    padding: 4px 10px;
    border-radius: var(--radius-small);
    background-color: rgba(255, 255, 255, 0.2);
}

.screen-connect-link:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
}

/* Success and error message styling */
.form-error-message {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    padding: var(--spacing-sm);
    border-radius: var(--radius-small);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.form-success-message {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    padding: var(--spacing-sm);
    border-radius: var(--radius-small);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

/* Powered by footer styling */
.wb_FtCon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 15px;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .ticket-hero {
        padding: 100px 0 70px;
    }
    
    .ticket-hero h1 {
        font-size: 2rem;
    }
    
    .ticket-hero p {
        font-size: 1rem;
        padding: 0 var(--spacing-md);
    }
    
    .ticket-container {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .zsFormClass {
        padding: 0 !important;
    }
    
    /* Make table cells stack on mobile */
    .zsFormClass tr {
        display: flex !important;
        flex-direction: column !important;
        padding: 10px 15px !important;
    }
    
    .zsFormClass td {
        width: 100% !important;
        display: block !important;
        padding: 5px 0 !important;
        text-align: left !important;
    }
    
    /* Adjust form inputs for mobile */
    #zohoSupportWebToCase input[type='text'],
    #zohoSupportWebToCase textarea,
    #zohoSupportWebToCase select {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        max-width: 100% !important;
    }
    
    /* Make date field responsive */
    #zohoSupportWebToCase input.wb_cusInput {
        width: 100% !important;
        margin-bottom: 10px !important;
        display: block !important;
    }
    
    /* Keep time selectors on one line but on their own line after the date */
    #zohoSupportWebToCase select.wb_selectDate {
        margin-right: 5px !important;
        width: auto !important;
        max-width: 30% !important;
        display: inline-block !important;
    }
    
    /* Fix form container width for mobile */
    .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Ensure no horizontal scrolling */
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* Make form fit within viewport */
    #zohoSupportWebToCase {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Fix for table width */
    .zsFormClass, .zsFormClass table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }
    
    /* Ensure all containers stay within viewport */
    .ticket-container, .customer-notice {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Fix button stack on mobile */
    #zohoSupportWebToCase input[type='submit'],
    #zohoSupportWebToCase input[type='button'] {
        width: 100% !important;
        margin: 5px 0 !important;
        padding: 12px !important;
    }
    
    /* Make attachments section more mobile-friendly */
    .wtcuploadfile {
        display: inline-block !important;
        padding: 8px 15px !important;
        border: 1px dashed var(--color-primary-mid) !important;
        border-radius: var(--radius-medium) !important;
        margin-bottom: 10px !important;
    }
}

/* Additional iPhone-specific adjustments */
@media (max-width: 480px) {
    .ticket-hero h1 {
        font-size: 1.75rem;
    }
    
    .zsFormClass td strong {
        font-size: 1.3rem;
        padding: var(--spacing-md);
    }
    
    /* Ensure date fields stay on one line */
    .zsFormClass td[align='left'] {
        white-space: nowrap !important;
        overflow-x: auto !important;
    }
    
    #zohoSupportWebToCase select.wb_selectDate {
        width: auto !important;
        min-width: 60px !important;
        max-width: 28% !important;
        padding: 8px 4px !important;
        font-size: 14px !important;
    }
}
