* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    color: #1a1a1a;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 30px 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.logo-container img {
    width: 70px;
    height: auto;
}

/* Fallback or old styles removed */

h2 {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px; /* Reduced to sit closer to subtitle */
}

.red-text {
    text-align: center;
    color: #d12229;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
}

.toggle-container {
    display: flex;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.toggle-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
}

.toggle-btn.active {
    background-color: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 20px;
    animation: fadeIn 0.4s ease;
}

.hidden {
    display: none !important;
}

.input-wrapper.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 45px;
}

.password-wrapper i {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #888;
    font-size: 18px;
}

.phone-input-wrapper {
    display: flex;
    gap: 12px;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    min-width: 110px;
    justify-content: center;
}

.country-selector .flag {
    width: 20px;
    height: 14px;
}

.country-selector .country-code {
    font-size: 15px;
    font-weight: 600;
}

.phone-input-wrapper input {
    flex: 1;
    padding: 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
}

.phone-input-wrapper input:focus {
    border-color: #1a1a1a;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.input-wrapper input {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.input-wrapper input:focus {
    border-color: #1a1a1a;
}

.input-wrapper input:disabled {
    background-color: #f9f9f9;
    color: #888;
}

.email-suggestions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none; /* Firefox */
}

.email-suggestions::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.email-suggestions span {
    background-color: #f5f5f5;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.email-suggestions span:hover {
    background-color: #e0e0e0;
}

.primary-btn {
    width: 100%;
    padding: 16px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.2s;
}

.primary-btn:hover:not(:disabled) {
    background-color: #333333;
}

.primary-btn:disabled {
    background-color: #999999;
    cursor: not-allowed;
}

.error {
    color: #d12229;
    text-align: center;
    margin-top: 16px;
    font-weight: 600;
    font-size: 15px;
}

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

/* --- Evidence Screen Styles --- */
.evidence-mode {
    background-color: #f8f9fb;
    min-height: 100vh;
    padding: 0;
    max-width: 100%;
}

.evidence-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
}

.evidence-header i {
    font-size: 20px;
    margin-right: 20px;
    cursor: pointer;
}

.evidence-header h1 {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    margin-right: 40px; /* Offset for centering */
}

.evidence-content {
    padding: 20px;
}

.textarea-wrapper {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
}

#issue-details {
    width: 100%;
    height: 120px;
    border: none;
    outline: none;
    resize: none;
    font-size: 15px;
    color: #1a1a1a;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.evidence-upload-group {
    margin-top: 24px;
}

.evidence-upload-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.upload-box {
    width: 100px;
    height: 100px;
    border: 1px dashed #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fcfcfc;
    cursor: pointer;
    transition: background-color 0.2s;
}

.upload-box:hover {
    background-color: #f5f5f5;
}

.upload-box i {
    font-size: 20px;
    color: #999;
    margin-bottom: 8px;
}

.upload-box span {
    font-size: 12px;
    color: #999;
}

.upload-box.added {
    border-style: solid;
    border-color: #1a1a1a;
    background-color: #f0f0f0;
}

.upload-box.added i {
    color: #1a1a1a;
}

.evidence-footer {
    padding: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 400px; /* Match container max-width */
    background-color: #f8f9fb;
}

#submit-evidence {
    margin-top: 0;
}

#submit-evidence.disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}
