/*
 * Sample Request Form Styles
 * Modern, Premium Design for Request Free Sample Page
 */

/* Reset and Base Styles */
.sample-request-section {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Form Container Styles */
.sample-form-container {
    position: relative;
}

.sample-form-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    z-index: -1;
    opacity: 0.1;
}

/* Form Sections */
.form-section {
    background: #fafbfc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* Form Groups */
.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Select Dropdown Styling */
.form-group select {
    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 8 4 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;
}

/* Textarea Styles */
.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Submit Button */
.form-group button[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-group button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.form-group button[type="submit"]:hover::before {
    left: 100%;
}

.form-group button[type="submit"]:active {
    transform: translateY(0) !important;
}

/* Info Section Styles */
.sample-info-container {
    position: relative;
}

.sample-info-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    z-index: -1;
    opacity: 0.05;
}

/* Benefit Items */
.sample-info-container .flex {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.sample-info-container .flex:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

/* Icon Styles */
.sample-info-container .bg-blue-100 {
    transition: all 0.3s ease;
}

.sample-info-container .flex:hover .bg-blue-100 {
    background: #3b82f6 !important;
    transform: scale(1.1);
}

.sample-info-container .flex:hover .text-blue-600 {
    color: white !important;
}

/* Contact Information */
.sample-info-container .border-t {
    border-top: 1px solid rgba(59, 130, 246, 0.2) !important;
}

/* Captcha Styles */
.form-group img {
    transition: all 0.3s ease;
}

.form-group img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sample-request-section {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .sample-info-container .flex {
        padding: 1rem;
    }
    
    .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Loading State */
.form-group button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Success/Error Message Styles */
.bg-green-50, .bg-red-50 {
    border-radius: 8px;
    border: 1px solid;
    animation: slideIn 0.3s ease-out;
}

.bg-green-50 {
    border-color: #10b981;
}

.bg-red-50 {
    border-color: #ef4444;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Effects */
.form-group input,
.form-group select,
.form-group textarea {
    position: relative;
}

.form-group input::after,
.form-group select::after,
.form-group textarea::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width 0.3s ease;
}

.form-group input:focus::after,
.form-group select:focus::after,
.form-group textarea:focus::after {
    width: 100%;
}

/* Gradient Text Effects */
.text-5xl {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
.form-group select::-webkit-scrollbar {
    width: 6px;
}

.form-group select::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.form-group select::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.form-group select::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Enhanced Focus States */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Print Styles */
@media print {
    .sample-request-section {
        break-inside: avoid;
    }
    
    .form-group button[type="submit"] {
        display: none;
    }
}