/* 
 * Shared Contact Form Styles
 * Used by book-demo and automate-your-process pages
 */

/* Form Container */
.form-container {
    background: linear-gradient(135deg, #1a1f35 0%, #0f1419 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s;
}

.form-container:hover {
    border-color: #00d4ff;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.form-container h2 {
    font-size: 28px;
    line-height: 42px;
    font-weight: 700;
    color: #00ff88;
    text-align: center;
    margin-bottom: 30px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #00ff88;
    margin-bottom: 10px;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 8px;
}

/* Form Inputs */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #f5f5f5;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group select {
    appearance: none; /* Removes the default dropdown icon */
    -webkit-appearance: none; /* For Webkit browsers */
    -moz-appearance: none; /* For Firefox */
    background-image: url(../svg/dropdown-arrow.svg);
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.form-group select:focus {
    background-image: url(../svg/dropdown-arrow.svg);
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    background-color: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
}

/* "Other" input for dropdowns */
.other-input {
    margin-top: 10px;
}

.other-input.hidden {
    display: none;
}

/* Consent Checkboxes */
.consent-group {
    margin-bottom: 15px;
}

.consent-label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: #a0aec0 !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 1.5;
}

.consent-label input[type='checkbox'] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #00d4ff;
}

.consent-label span {
    flex: 1;
}

/* Submit Button - shared base styles */
.submit-btn,
.primary-btn {
    width: 100%;
    padding: 20px;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    color: #0a0e1a;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.submit-btn:disabled,
.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Shimmer effect on hover */
.submit-btn::before,
.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before,
.primary-btn:hover::before {
    left: 100%;
}

.submit-btn:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.submit-btn svg,
.primary-btn svg {
    width: 24px;
    height: 24px;
    color: currentColor;
    fill: currentColor;
    position: relative;
    z-index: 1;
}

/* Button icon with spacing */
.submit-btn .btn-icon,
.primary-btn .btn-icon {
    display: inline-block;
    margin-right: 8px;
}

/* Privacy Note */
.privacy-note {
    text-align: center;
    font-size: 13px;
    color: #718096;
    margin-top: 12px;
    font-style: italic;
}

.privacy-note a {
    color: #00d4ff;
    text-decoration: underline;
    transition: color 0.3s;
}

.privacy-note a:hover {
    color: #00ff88;
}

/* Form Error Styles */
.form-error-container {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-error-container .error-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.form-error-container .error-message {
    color: #ff6465;
    font-size: 14px;
    line-height: 1.5;
}

.field-error {
    color: #ff6465;
    font-size: 13px;
    margin-top: 6px;
}

.input-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.input-error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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