.ccr-container {
    max-width: 600px;
    margin: 1.5em auto;
    padding: 1.5em;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ccr-form-group {
    margin-bottom: 1.2em;
}

.ccr-container label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: #333;
}

.ccr-container input,
.ccr-container select,
.ccr-container input[type="date"] {
    width: 100% !important;
    padding: 0.7em 1.2em !important;
    margin-top: 0.2em !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 1em !important;
    line-height: 1.4 !important;
    transition: border-color 0.2s !important;
    box-sizing: border-box !important;
    height: 50px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Special styling for date inputs to make them consistent across browsers */
.ccr-container input[type="date"] {
    padding-right: 0.5em !important;
}

/* Add custom dropdown arrow for select elements */
.ccr-container select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" viewBox="0 0 12 6"><path fill="%23666" d="M0 0l6 6 6-6z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 1.2em top 50% !important;
    background-size: 0.65em auto !important;
    padding-right: 2.5em !important;
}

.ccr-container input:focus,
.ccr-container select:focus {
    outline: none !important;
    border-color: #4a90e2 !important;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2) !important;
}

#ccr-submit {
    display: inline-block;
    margin-top: 1em;
    padding: 0.8em 1.5em;
    background-color: #4a90e2;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    height: auto; /* Override the fixed height for the button */
}

#ccr-submit:hover {
    background-color: #3a80d2;
}

#ccr-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#ccr-response {
    margin-top: 1.5em;
    padding: 1em;
    border-radius: 4px;
}

#ccr-response .error {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 0.8em;
    border-radius: 4px;
    border-left: 4px solid #d32f2f;
}

#ccr-response .success {
    color: #388e3c;
    background-color: #e8f5e9;
    padding: 0.8em;
    border-radius: 4px;
    border-left: 4px solid #388e3c;
}

#ccr-response .loading {
    color: #666;
    font-style: italic;
}

.ccr-hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ccr-container {
        padding: 1em;
    }
    
    /* Improve touch targets on mobile */
    .ccr-container input,
    .ccr-container select,
    .ccr-container input[type="date"] {
        height: 54px !important;
    }
    
    #ccr-submit {
        width: 100%;
        padding: 1em;
    }
} 