/* WordPress Client Form - Professional B2B Styling */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.form-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.header-content {
    padding: 40px 30px;
    text-align: center;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-section i {
    font-size: 2.5rem;
    color: #60a5fa;
}

.form-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    margin-top: 8px;
}

/* Message Container */
.message-container {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.message-container.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message-container.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.message-container i {
    font-size: 1.2rem;
}

/* Important Notice */
.important-notice {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes noticeGlow {
    from {
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
    }
    to {
        box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5);
    }
}

.notice-header {
    background: #1f2937;
    color: white;
    padding: 16px 20px;
    border-radius: 6px 6px 0 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.notice-header i {
    font-size: 1.2rem;
    color: #fbbf24;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.notice-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.notice-content {
    padding: 20px;
}

/* Notice Grid - Professional Design */
.notice-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid;
}

.notice-item.success {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.notice-item.error {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.notice-item.warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.notice-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 2px;
}

.notice-item.success .notice-icon {
    background: #22c55e;
    color: white;
}

.notice-item.error .notice-icon {
    background: #ef4444;
    color: white;
}

.notice-item.warning .notice-icon {
    background: #f59e0b;
    color: white;
}

.notice-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
}

.notice-text strong {
    color: #1f2937;
    font-weight: 600;
}

.notice-warning {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    color: #92400e;
    font-size: 0.95rem;
    line-height: 1.4;
}

.notice-warning i {
    font-size: 1.5rem;
    color: #f59e0b;
}

.agreement-section {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #d97706;
    border-radius: 12px;
    padding: 25px;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 25px;
    width: 25px;
    background-color: white;
    border: 3px solid #f59e0b;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-container:hover .checkmark {
    background-color: #fef3c7;
    transform: scale(1.1);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #f59e0b;
    border-color: #d97706;
}

.checkmark:after {
    content: "";
    display: none;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Required checkbox error state */
.checkbox-container.error .checkmark {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .important-notice {
        margin: 20px 10px 30px 10px;
    }
    
    .notice-header {
        padding: 12px 16px;
        gap: 8px;
    }

    .notice-header h3 {
        font-size: 1rem;
    }

    .notice-content {
        padding: 16px;
    }

    .notice-grid {
        gap: 10px;
    }

    .notice-item {
        flex-direction: column;
        gap: 8px;
        text-align: left;
        padding: 10px;
    }

    .notice-icon {
        align-self: flex-start;
    }

    .notice-text {
        font-size: 0.9rem;
    }
    
    .checkbox-container {
        font-size: 1rem;
    }
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

/* Form Sections */
.form-section {
    padding: 40px;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
    border-bottom: none;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-header i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 15px;
    display: block;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.section-header p {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    align-items: start;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Contact Form Grid Layouts */
.contact-form-grid,
.project-form-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
}

/* Responsive adjustments for form rows */
@media (max-width: 1024px) {
    .form-row-three {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .form-row-three .form-group:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .form-row-three,
    .form-row-two {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row-three .form-group:nth-child(3) {
        grid-column: 1;
    }
}

/* Form Groups */
.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.required-asterisk {
    color: #ef4444;
    font-weight: 700;
}

/* Input Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Required Field Styling */
.form-group.required input {
    border-color: #fbbf24;
    background-color: #fffbeb;
}

.form-group.required input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Small Text */
small {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

/* File Upload Styles */
.file-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fafafa;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #3b82f6;
    background-color: #f0f9ff;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content i {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 10px;
    display: block;
}

.file-upload-content p {
    color: #374151;
    font-weight: 500;
    margin-bottom: 5px;
}

.file-upload-content small {
    color: #6b7280;
    margin-top: 0;
}

/* File Preview Styles */
.file-preview,
.file-preview-multiple {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    display: none;
}

.file-preview.active,
.file-preview-multiple.active {
    display: block;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: #f3f4f6;
    border-radius: 6px;
    margin-bottom: 8px;
}

.preview-item i {
    color: #3b82f6;
}

.preview-item .file-name {
    flex: 1;
    font-size: 0.9rem;
    color: #374151;
}

.preview-item .file-size {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Color Input Group */
.color-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-input-group input[type="color"] {
    width: 60px;
    height: 50px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    background: none;
    padding: 0;
}

.color-input-group input[type="text"] {
    flex: 1;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
}

/* Font Search Container */
.font-search-container {
    position: relative;
    width: 100%;
}

.font-search-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.font-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.font-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.font-dropdown.show {
    display: block;
}

.font-options {
    padding: 0;
}

.font-category {
    border-bottom: 1px solid #f1f5f9;
}

.font-category:last-child {
    border-bottom: none;
}

.font-category-title {
    padding: 12px 16px;
    background-color: #f8fafc;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.font-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #4b5563;
    border-bottom: 1px solid #f9fafb;
}

.font-option:hover {
    background-color: #f0f9ff;
    color: #1e40af;
}

.font-option.selected {
    background-color: #3b82f6;
    color: white;
}

.font-option.hidden {
    display: none;
}

.font-preview {
    margin-top: 15px;
    padding: 20px;
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1.2rem;
    text-align: center;
    color: #374151;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: font-family 0.3s ease;
}

/* Font search no results */
.no-results {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

/* Map Integration Styles */
.map-container {
    margin-top: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8fafc;
}

.location-map {
    width: 100%;
    height: 300px;
    background-color: #e5e7eb;
    position: relative;
}

.map-controls {
    padding: 15px;
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-map:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.btn-map:active {
    transform: translateY(0);
}

.btn-map i {
    font-size: 0.9rem;
}

#clear-location-btn {
    background-color: #6b7280;
}

#clear-location-btn:hover {
    background-color: #4b5563;
}

.coordinates-display {
    padding: 10px 15px;
    background-color: #f1f5f9;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.coordinates-display small {
    color: #475569;
    font-weight: 500;
}

#selected-coordinates {
    font-family: 'Courier New', monospace;
    color: #1e40af;
    font-weight: 600;
}

/* Map marker custom styles */
.custom-marker {
    background-color: #ef4444;
    border: 3px solid #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Loading state for map */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background-color: #f8fafc;
    color: #6b7280;
    font-size: 1rem;
}

.map-loading i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

/* Map error state */
.map-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background-color: #fef2f2;
    color: #dc2626;
    text-align: center;
    padding: 20px;
}

.map-error i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Responsive map adjustments */
@media (max-width: 768px) {
    .location-map {
        height: 250px;
    }
    
    .map-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-map {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    min-width: 140px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

/* Form Actions */
.form-actions {
    padding: 30px 40px;
    background-color: #f8fafc;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Footer */
.form-footer {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .form-header h1 {
        font-size: 2rem;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-section {
        padding: 25px 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .form-actions {
        padding: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .form-header h1 {
        font-size: 1.75rem;
    }
    
    .header-content {
        padding: 25px 20px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .color-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .color-input-group input[type="color"] {
        width: 100%;
        height: 45px;
    }
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-group.error input:focus,
.form-group.error select:focus,
.form-group.error textarea:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message i {
    font-size: 0.8rem;
}

/* Success States */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
