/* Custom Contact Form Styles */
.ccf-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ccf-form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.ccf-form {
    width: 100%;
}

.ccf-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 15px;
}

.ccf-form-field {
    display: flex;
    flex-direction: column;
}

.ccf-form-field.ccf-half {
    flex: 1;
    min-width: calc(50% - 7.5px);
}

.ccf-form-field.ccf-third {
    flex: 1;
    min-width: calc(33.333% - 10px);
}

.ccf-form-field.ccf-full {
    flex: 1;
    width: 100%;
}

.ccf-form-field label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.ccf-required {
    color: #e74c3c;
    margin-left: 2px;
}

.ccf-input,
.ccf-select,
.ccf-textarea {
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.ccf-input:focus,
.ccf-select:focus,
.ccf-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ccf-input:invalid,
.ccf-select:invalid,
.ccf-textarea:invalid {
    border-color: #e74c3c;
}

.ccf-select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.ccf-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.ccf-submit-btn {
    background: linear-gradient(135deg, #e92f25, #d32f2f);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
    position: relative;
    box-shadow: 0 2px 4px rgba(233, 47, 37, 0.3);
}

.ccf-submit-btn:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 47, 37, 0.4);
}

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

.ccf-submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ccf-form-messages {
    margin-top: 20px;
}

.ccf-success-message,
.ccf-error-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 500;
}

.ccf-success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ccf-error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading Animation */
.ccf-submit-loading {
    display: inline-block;
}

.ccf-submit-loading:after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: ccf-spin 1s ease-in-out infinite;
}

@keyframes ccf-spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ccf-form-container {
        padding: 15px;
        margin: 10px;
    }
    
    .ccf-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .ccf-form-field.ccf-half,
    .ccf-form-field.ccf-third {
        min-width: 100%;
        margin-bottom: 15px;
    }
    
    .ccf-form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .ccf-submit-btn {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .ccf-input,
    .ccf-select,
    .ccf-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
} 