/* Custom Contact Form Styles - Dark Background Greyscale Version */
#ccf-form-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
}

#ccf-form-wrapper {
    background: transparent;
    padding: 30px;
    padding-top: 0px;
    border-radius: 8px;
    box-shadow: none;
    border: none;
}

#ccf-form-wrapper h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 600;
    text-align: left;
}

.ccf-form-group {
    margin-bottom: 20px;
    position: relative;
}

.ccf-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
}

.ccf-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(160, 160, 160, 0.3);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.ccf-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.ccf-form-group input:focus {
    outline: none;
    border-color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.ccf-form-group.ccf-error input {
    border-color: #ff4757;
    background-color: rgba(255, 71, 87, 0.1);
}

.ccf-error-message {
    display: block;
    color: #ff4757;
    font-size: 13px;
    margin-top: 5px;
    font-style: italic;
}

#ccf-submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f5f5f5, #d0d0d0);
    color: #1a1a1a;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#ccf-submit-btn:hover:not(:disabled) {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

#ccf-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success Message Styles */
#ccf-success-message {
    background: linear-gradient(135deg, #4a4a4a, #6a6a6a);
    color: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 20px rgba(106, 106, 106, 0.3);
}

#ccf-success-message h3 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
}

#ccf-success-message p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

/* Loading Styles */
#ccf-loading {
    text-align: center;
    padding: 30px;
    background: transparent;
    border-radius: 8px;
    box-shadow: none;
}

.ccf-loader {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: ccf-spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes ccf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#ccf-loading p {
    color: #ffffff;
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    #ccf-form-container {
        margin: 0 0px;
    }
    
    #ccf-form-wrapper {
        padding: 0px;
    }
    
    #ccf-form-wrapper h3 {
        font-size: 20px;
    }
    
    .ccf-form-group input {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    #ccf-submit-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #ccf-form-wrapper {
        padding: 15px;
    }
    
    .ccf-form-group {
        margin-bottom: 15px;
    }
}

/* Animation for form transitions */
#ccf-form-wrapper,
#ccf-success-message,
#ccf-loading {
    transition: all 0.5s ease-in-out;
}

/* Focus styles for accessibility */
#ccf-submit-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.4);
    outline-offset: 2px;
}

.ccf-form-group input:focus {
    outline: none; /* We're using custom focus styles */
}

/* Custom checkbox/radio styles if needed in future */
.ccf-checkbox,
.ccf-radio {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.ccf-checkbox input,
.ccf-radio input {
    width: auto;
    margin-right: 10px;
}

.ccf-checkbox label,
.ccf-radio label {
    color: #ffffff;
}

/* Print styles */
@media print {
    #ccf-form-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}